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_51 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR)
system
What is the latest year when the best finish is 2 and the scoring average is less than 71.24?
user
SELECT MAX(year) FROM table_name_51 WHERE best_finish = "2" AND scoring_average < 71.24
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_51 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR)<|im_end|>
<|im_start|>user
What is the latest year when the best finish is 2 and the scoring average is less than 71.24?<|im_end|>
