Database: dog_kennels
Question: What is the average age of the dogs who are in the treatments?
SQL: select avg(age) from dogs where dog_id in ( select dog_id from treatments )