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_21 (entrants INTEGER, winner VARCHAR)
system
How many entrants did the events won by Frank Gary average?
user
SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary"
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_21 (entrants INTEGER, winner VARCHAR)<|im_end|>
<|im_start|>user
How many entrants did the events won by Frank Gary average?<|im_end|>
