Task: Text to Code
Input (English): Find the name of students who took any class in the years of 2009 and 2010.
Output (English): SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010