CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR(255)); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR(255))
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)