How many laps were completed in grid 18?
CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR)
SELECT SUM(laps) FROM table_name_20 WHERE grid = 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR) Question: How many laps were completed in grid 18? [/INST] SELECT SUM(laps) FROM table_name_20 WHERE grid = 18 </s>