CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);

Question: What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?
SQL: SELECT "time_retired" FROM "moto_gp_classification" WHERE "grid"<9 AND "laps"=21 AND "rider"='jeremy mcwilliams';

Question: What is the lowest grid number that a race took place doing more than 21 laps?
SQL: SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps">21;

Question: What is the total number of grids where there were races that had a time of 34:22.335?
SQL: SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time_retired"='34:22.335';