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_80 (qual VARCHAR, laps VARCHAR, year VARCHAR)
system
Which qual has both 200 total laps and took place in 1957?
user
SELECT qual FROM table_name_80 WHERE laps = 200 AND year = "1957"
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_80 (qual VARCHAR, laps VARCHAR, year VARCHAR)<|im_end|>
<|im_start|>user
Which qual has both 200 total laps and took place in 1957?<|im_end|>
