Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE captain (CLASS VARCHAR, age INTEGER)
### Question:
What are the average and minimum age of captains in different class?
### Answer:
SELECT AVG(age), MIN(age), CLASS FROM captain GROUP BY CLASS