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_58 (total VARCHAR, rank VARCHAR, gold VARCHAR)
system
What's the sum of total where the rank is over 9 and the gold is less than 1?
user
SELECT COUNT(total) FROM table_name_58 WHERE rank > 9 AND gold < 1
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_58 (total VARCHAR, rank VARCHAR, gold VARCHAR)<|im_end|>
<|im_start|>user
What's the sum of total where the rank is over 9 and the gold is less than 1?<|im_end|>
