How many laps did ben spies do on the grid less than 7?
CREATE TABLE table_name_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: 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? [/INST] SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies" </s>