Question: Find the name of students who took any class in the years of 2009 and 2010.
Schema: create table student (name varchar, id varchar, PRIMARY KEY (name)); create table takes (id varchar, PRIMARY KEY (id))
SQL: select distinct t1.name from student as t1 join takes as t2 on t1.id = t2.id where year = 2009 or year = 2010