Tell me the sum of laps with a time/retired of +13 laps with grid more than 18
CREATE TABLE table_name_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_21 WHERE time_retired = "+13 laps" AND grid > 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) Question: Tell me the sum of laps with a time/retired of +13 laps with grid more than 18 [/INST] SELECT SUM(laps) FROM table_name_21 WHERE time_retired = "+13 laps" AND grid > 18 </s>