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_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR)
system
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
user
SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75
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_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR)<|im_end|>
<|im_start|>user
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?<|im_end|>
