How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?
CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
SELECT SUM("laps") FROM "125cc_classification" WHERE "grid"<5 AND "time_retired"='retirement';