How many laps did ben spies do on the grid less than 7?
CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid"<7 AND "rider"='ben spies';