What is the average age of the dogs who have gone through any treatments?
SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )
[{'avg(age)': 5.111111111111111}]