CREATE TABLE "double_bagel_matches_6_0_6_0" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "opponent" text,
  "rank" real,
  "round" text
);

Question: What is Round, when Rank is less than 117?
SQL: SELECT "round" FROM "double_bagel_matches_6_0_6_0" WHERE "rank"<117;

Question: What is Average Year, when Round is R128 (First Round)?
SQL: SELECT AVG("year") FROM "double_bagel_matches_6_0_6_0" WHERE "round"='r128 (first round)';

Question: What is Championship, when Year is greater than 2002, and when Surface is Hard?
SQL: SELECT "championship" FROM "double_bagel_matches_6_0_6_0" WHERE "year">2002 AND "surface"='hard';