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

Question: What is Time, when Laps is 22, and when Grid is 15?
SQL: SELECT "time" FROM "moto_gp_classification" WHERE "laps"=22 AND "grid"=15;

Question: What is the average Grid, when Time is +45.855?
SQL: SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time"='+45.855';

Question: What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?
SQL: SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time"='+43.191' AND "laps"<22;