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_2 (rank INTEGER, gold INTEGER)
system
What's the total Rank that has a Gold that's smaller than 0?
user
SELECT SUM(rank) FROM table_name_2 WHERE gold < 0
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_2 (rank INTEGER, gold INTEGER)<|im_end|>
<|im_start|>user
What's the total Rank that has a Gold that's smaller than 0?<|im_end|>
