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_86 (year VARCHAR, team VARCHAR, rank VARCHAR)
system
How many years did Team Newman/Haas Racing receive a 1st place ranking?
user
SELECT COUNT(year) FROM table_name_86 WHERE team = "newman/haas racing" AND rank = "1st"
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_86 (year VARCHAR, team VARCHAR, rank VARCHAR)<|im_end|>
<|im_start|>user
How many years did Team Newman/Haas Racing receive a 1st place ranking?<|im_end|>
