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_33 (total INTEGER, nation VARCHAR, gold VARCHAR)
system
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?
user
SELECT AVG(total) FROM table_name_33 WHERE nation = "soviet union" AND gold > 9
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_33 (total INTEGER, nation VARCHAR, gold VARCHAR)<|im_end|>
<|im_start|>user
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?<|im_end|>
