Task: Text to Code
Input (English): Step 1: For each row in section table, find the corresponding rows in takes table.
Step 2: find section's sec_id of the results of step 1 whose takes's year equals 2009.
Step 3: find the takes's course_id of takes table for which takes's year equals 2010.
Step 4: show the rows that are in both the results of step 2 and the results of step 3
Output (English): SELECT T1.sec_id FROM section AS T1 JOIN takes AS T2 ON T1.year = T2.year WHERE T2.year = 2009 INTERSECT SELECT T2.course_id FROM takes AS T2 WHERE T2.year = 2010