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