CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "prize_k" real,
  "runners" real,
  "placing" real,
  "margin" text,
  "jockey" text,
  "trainer" text
);

Question: How many runners had placings over 8?
SQL: SELECT COUNT("runners") FROM "race_record" WHERE "placing">8;

Question: Which course had a jockey of Royston FFrench?
SQL: SELECT "course" FROM "race_record" WHERE "jockey"='royston ffrench';

Question: What is the average prize for the Buttercross Limited Stakes?
SQL: SELECT AVG("prize_k") FROM "race_record" WHERE "race"='buttercross limited stakes';

Question: How many total runners had jockeys of Olivier Peslier with placings under 2?
SQL: SELECT SUM("runners") FROM "race_record" WHERE "jockey"='olivier peslier' AND "placing"<2;