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_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
system
What is the lap total for the grid under 15 that retired due to transmission?
user
SELECT SUM(laps) FROM table_name_65 WHERE grid < 15 AND time_retired = "transmission"
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_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)<|im_end|>
<|im_start|>user
What is the lap total for the grid under 15 that retired due to transmission?<|im_end|>
