CREATE TABLE "singles" (
  "tournament" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2010" text,
  "2011" text
);

Question: What is the value in 1990 when it is A in 1989, 1985, and 1993?
SQL: SELECT "1990" FROM "singles" WHERE "1989"='a' AND "1985"='a' AND "1993"='a';

Question: What is the value in 1988 when it is 2R in 1997 and SF in 1993?
SQL: SELECT "1988" FROM "singles" WHERE "1997"='2r' AND "1993"='sf';

Question: What is the value in 1987 when it is A in 1999, 1989, and 1997?
SQL: SELECT "1987" FROM "singles" WHERE "1999"='a' AND "1989"='a' AND "1997"='a';