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 )