text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
  ### Question:
  How many laps did ben spies do on the grid less than 7?
  ### Answer:
  SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies"