Task: Text to Code
Input (English): SQL: SELECT date_departed , date_of_birth FROM Dogs WHERE gender = 1
Feedback: gender equals 1 to be replaced with treatments table's dog id and date of birth with date arrived .
Output (English): SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id