Database: dog_kennels
Question: Find the average age of the dogs who went through treatments.
SQL: select avg(age) from dogs where dog_id in ( select dog_id from treatments )