Find the average and oldest age for students with different sex.
CREATE TABLE student (sex VARCHAR, age INTEGER)
SELECT AVG(age), MAX(age), sex FROM student GROUP BY sex
### Context: CREATE TABLE student (sex VARCHAR, age INTEGER) ### Question: Find the average and oldest age for students with different sex. ### Answer: SELECT AVG(age), MAX(age), sex FROM student GROUP BY sex