How many laps were there when time/retired was gearbox?
CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
SELECT SUM("laps") FROM "classification" WHERE "time_retired"='gearbox';