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

Question: What is the average grid for the competitiors who had laps smaller than 3?
SQL: SELECT AVG("grid") FROM "moto_gp_classification" WHERE "laps"<3;

Question: What is the average grid for competitors who had more than 22 laps and time/retired of +17.276?
SQL: SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+17.276' AND "laps">22;

Question: What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108?
SQL: SELECT AVG("laps") FROM "moto_gp_classification" WHERE "time_retired"='+28.108' AND "grid">11;