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

Question: What is the average of laps ridden by Toni Elias?
SQL: SELECT AVG("laps") FROM "moto_gp_classification" WHERE "rider"='toni elias';

Question: How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?
SQL: SELECT "time" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "grid"<8 AND "laps"<23;

Question: What is the fewest amount of laps when the grid was larger than 1 and 42:31.153?
SQL: SELECT MIN("laps") FROM "moto_gp_classification" WHERE "time"='42:31.153' AND "grid">1;

Question: How long did it take to ride when the laps were 23 and the grid of 13?
SQL: SELECT "time" FROM "moto_gp_classification" WHERE "laps"=23 AND "grid"=13;