CREATE TABLE captain (CLASS VARCHAR, age INT)

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