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_40 (week INTEGER, record VARCHAR)
system
What is the earliest week that shows a record of 8–5?
user
SELECT MIN(week) FROM table_name_40 WHERE record = "8–5"
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_40 (week INTEGER, record VARCHAR)<|im_end|>
<|im_start|>user
What is the earliest week that shows a record of 8–5?<|im_end|>
