Database: pets_1
Question: Find the average age for each type of pet.
SQL: select avg(pet_age), pettype from pets group by pettype