Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### 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