SELECT avg(pet_age) ,  max(pet_age) ,  pettype FROM pets GROUP BY pettype
What is the average and maximum age for each pet type?
SELECT avg ( pet_age ) , max ( pet_age ) , pettype FROM pets GROUP BY pettype
select avg ( pet_age ) , max ( pet_age ) , pettype from pets group by pettype
What is the average and maximum age for each pet type ?