Context: CREATE TABLE pets (pettype VARCHAR, pet_age INTEGER)
Question: Find the average and maximum age for each type of pet.
Answer: SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype