CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "class" text,
  "team" text,
  "chassis" text,
  "tyre" text,
  "laps" real
);

Question: What's the total of Year that's got a Team of Porsche Kremer Racing?
SQL: SELECT SUM("year") FROM "complete_24_hours_of_le_mans_results" WHERE "team"='porsche kremer racing';

Question: Which Class has a Chassis of Mazda 787B?
SQL: SELECT "class" FROM "complete_24_hours_of_le_mans_results" WHERE "chassis"='mazda 787b';

Question: What Year has a Tyre of D, and Chassis of Mazda 787?
SQL: SELECT "year" FROM "complete_24_hours_of_le_mans_results" WHERE "tyre"='d' AND "chassis"='mazda 787';

Question: What is the total number of Laps that's got a Year less than 1987?
SQL: SELECT SUM("laps") FROM "complete_24_hours_of_le_mans_results" WHERE "year"<1987;