You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
system
Tell me the sum of laps with a time/retired of +13 laps with grid more than 18
user
SELECT SUM(laps) FROM table_name_21 WHERE time_retired = "+13 laps" AND grid > 18
assistant
<|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)<|im_end|>
<|im_start|>user
Tell me the sum of laps with a time/retired of +13 laps with grid more than 18<|im_end|>
