Table schema:
CREATE TABLE pets (pettype VARCHAR, pet_age INTEGER)

Question: Find the average and maximum age for each type of pet.
SQL: SELECT AVG(pet_age), MAX(pet_age), pettype FROM pets GROUP BY pettype