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_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR)
system
Who had the fastest lap in the race where Patrick Tambay was on the pole?
user
SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = "Patrick Tambay"
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_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR)<|im_end|>
<|im_start|>user
Who had the fastest lap in the race where Patrick Tambay was on the pole?<|im_end|>
