What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha
CREATE TABLE table_name_10 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_10 WHERE rider = "andrew pitt" AND grid < 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (laps INTEGER, rider VARCHAR, grid VARCHAR) Question: What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha [/INST] SELECT MIN(laps) FROM table_name_10 WHERE rider = "andrew pitt" AND grid < 18 </s>