CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);

Question: What is the total number of laps where time/retired is +2 laps and the grid number is bigger than 18?
SQL: SELECT SUM("laps") FROM "classification" WHERE "time_retired"='+2 laps' AND "grid">18;

Question: What is the mean number of laps where time/retired was +1:05.564?
SQL: SELECT AVG("laps") FROM "classification" WHERE "time_retired"='+1:05.564';

Question: Which lap number had a grid number bigger than 9 and where the driver was Mark Webber?
SQL: SELECT "laps" FROM "classification" WHERE "grid">9 AND "driver"='mark webber';