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
[{'avg(weight)': 12.0, 'PetType': 'cat'}, {'avg(weight)': 11.350000000000001, 'PetType': 'dog'}]