Task: Text to Code
Input (English): Step 1: For each row in student table, find the corresponding rows in time_slot table.
Step 2: find name of the results of step 1 whose day equals 2010.
Step 3: find name of the results of step 1 whose day equals 2009.
Step 4: show the rows that are in both the results of step 2 and the results of step 3
Output (English): SELECT T1.name FROM student AS T1 JOIN time_slot AS T2 WHERE T2.day = 2010 INTERSECT SELECT T1.name FROM student AS T1 JOIN time_slot AS T2 WHERE T2.day = 2009