Database: pets_1
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