CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text
);

Question: What tournament has 1r as a 2004, and 1r as a 2007?
SQL: SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2004"='1r' AND "2007"='1r';

Question: What 2012 has q2 as the 2010, and wimbledon as the tournament?
SQL: SELECT "2012" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='q2' AND "tournament"='wimbledon';

Question: What 2006 has grand slam tournaments of 2010?
SQL: SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='grand slam tournaments';

Question: What 2006 has grand slam tournaments of 2005?
SQL: SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2005"='grand slam tournaments';

Question: What 2006 has q2 as the 2007?
SQL: SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2007"='q2';