CREATE TABLE "finishing_order" (
  "position" text,
  "number" real,
  "horse" text,
  "jockey" text,
  "age" real,
  "handicap" text,
  "sp" text,
  "distance" text
);

Question: what is distance for the 7th position?
SQL: SELECT COUNT("distance") FROM "finishing_order" WHERE "position"='7th';

Question: who isthe jockey in 10th position?
SQL: SELECT "jockey" FROM "finishing_order" WHERE "position"='10th';

Question: what position is number 22?
SQL: SELECT "position" FROM "finishing_order" WHERE "number"=22;

Question: what horse is in the 6th position?
SQL: SELECT "horse" FROM "finishing_order" WHERE "position"='6th';

Question: what position has a handicap of 10-2?
SQL: SELECT "position" FROM "finishing_order" WHERE "handicap"='10-2';

Question: what is the handicap where the distance is 9 lengths?
SQL: SELECT "handicap" FROM "finishing_order" WHERE "distance"='9 lengths';