Table schema:
CREATE TABLE captain (CLASS VARCHAR, age INTEGER)

Question: What are the average and minimum age of captains in different class?
SQL: SELECT AVG(age), MIN(age), CLASS FROM captain GROUP BY CLASS