What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?
CREATE TABLE table_name_39 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_39 WHERE time = "+24.440" AND grid > 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (laps INTEGER, time VARCHAR, grid VARCHAR) Question: What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18? [/INST] SELECT MIN(laps) FROM table_name_39 WHERE time = "+24.440" AND grid > 18 </s>