CREATE TABLE "2007_08_partick_thistle_f_c_season" (
  "round" text,
  "date" text,
  "opponent" text,
  "venue" text,
  "attendance" real
);

Question: Who was the opponent at the qf(r) round?
SQL: SELECT "opponent" FROM "2007_08_partick_thistle_f_c_season" WHERE "round"='qf(r)';

Question: What day was the game held at Firhill against AYR United?
SQL: SELECT "date" FROM "2007_08_partick_thistle_f_c_season" WHERE "venue"='firhill' AND "opponent"='ayr united';

Question: What is the average attendance at a game held at Firhill for the 5(r) round?
SQL: SELECT AVG("attendance") FROM "2007_08_partick_thistle_f_c_season" WHERE "venue"='firhill' AND "round"='5(r)';