SELECT avg(weight) ,  pettype FROM pets GROUP BY pettype
What is the average weight for each type of pet?
SELECT avg ( weight ) , pettype FROM pets GROUP BY pettype
select avg ( weight ) , pettype from pets group by pettype
What is the average weight for each type of pet ?