CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);

Question: What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"?
SQL: SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2011"='a' AND "tournament"='paris masters';

Question: What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?
SQL: SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='a' AND "tournament"='madrid masters';

Question: What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"?
SQL: SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='a' AND "2008"='a';

Question: What is 2009, when 2011 is "Q2"?
SQL: SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='q2';

Question: What is 2011, when Tournament is "Year-End Ranking"?
SQL: SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='year-end ranking';