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

Question: What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
SQL: SELECT "time_retired" FROM "250cc_classification" WHERE "laps"<23 AND "grid">23;

Question: How many laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1?
SQL: SELECT SUM("laps") FROM "250cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='jorge lorenzo' AND "grid">1;