CREATE TABLE "singles" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2011" text,
  "2012" text,
  "2013" text
);

Question: How many sets were played in the 2011 Tournament in which there were 3R in 2007?
SQL: SELECT "2011" FROM "singles" WHERE "2007"='3r';

Question: How many sets were in the 2011 Australian Open Tournament?
SQL: SELECT "2011" FROM "singles" WHERE "tournament"='australian open';

Question: How many sets were played in the tournament that had 4R in 2011 and 2R in 2008?
SQL: SELECT "2009" FROM "singles" WHERE "2011"='4r' AND "2008"='2r';

Question: How many sets were played in the 2011 tournament, in which 2R were played in 2008?
SQL: SELECT "2011" FROM "singles" WHERE "2008"='2r';

Question: Which tournament had 1R in 2013?
SQL: SELECT "tournament" FROM "singles" WHERE "2013"='1r';

Question: How many sets were played in 2007 at the tournament that had 4R in 2011 and 2R in 2009?
SQL: SELECT "2007" FROM "singles" WHERE "2011"='4r' AND "2009"='2r';