CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);

Question: what is the grid when the rider is mika kallio?
SQL: SELECT MAX("grid") FROM "250cc_classification" WHERE "rider"='mika kallio';

Question: what is the time when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi?
SQL: SELECT "time" FROM "250cc_classification" WHERE "laps"<21 AND "manufacturer"='aprilia' AND "grid"<17 AND "rider"='thomas luthi';

Question: what is the time when the laps is less than 21 and the grid is more than 17?
SQL: SELECT "time" FROM "250cc_classification" WHERE "laps"<21 AND "grid">17;