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

Question: How many laps did pere riba ride?
SQL: SELECT SUM("laps") FROM "moto_gp_classification" WHERE "rider"='pere riba';

Question: How many laps were in grid 4?
SQL: SELECT "laps" FROM "moto_gp_classification" WHERE "grid"=4;

Question: Who manufactured grid 11?
SQL: SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"=11;

Question: Which Grid has Laps larger than 26, and a Time/Retired of 44:39.467?
SQL: SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps">26 AND "time_retired"='44:39.467';