Task: Text to Code
Input (English): Step 1: For each row in Treatments table, find corresponding rows in Dogs table and in Professionals table.
Step 2: find date_adopted, first_name of the results of step 1
Output (English): SELECT T1.date_adopted , T2.first_name FROM Dogs AS T1 JOIN Professionals AS T2 JOIN Treatments AS T3 ON T1.dog_id = T3.dog_id AND T3.professional_id = T2.professional_id