CREATE TABLE "race_performances" (
  "date" text,
  "placing" text,
  "beat_by" text,
  "location" text,
  "distance" text
);

Question: Who beat Chic by 8fm?
SQL: SELECT "beat_by" FROM "race_performances" WHERE "distance"='8fm';

Question: What was the placing of the race in which Chic won by 8gf?
SQL: SELECT "placing" FROM "race_performances" WHERE "beat_by"='won' AND "distance"='8gf';

Question: What was the date in which Chic won at CHS?
SQL: SELECT "date" FROM "race_performances" WHERE "beat_by"='won' AND "location"='chs';