Database: dog_kennels
Question: What is the average age of the dogs who have gone through any treatments?
SQL:
SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )