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

Question: How many laps did gunnar nilsson drive?
SQL: SELECT SUM("laps") FROM "classification" WHERE "driver"='gunnar nilsson';

Question: Who built james hunt's car that went 79 laps?
SQL: SELECT "constructor" FROM "classification" WHERE "laps"=79 AND "driver"='james hunt';