with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?
CREATE TABLE table_name_85 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_85 WHERE rider = "marco melandri" AND grid < 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (laps INTEGER, rider VARCHAR, grid VARCHAR) Question: with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count? [/INST] SELECT MAX(laps) FROM table_name_85 WHERE rider = "marco melandri" AND grid < 10 </s>