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_23 (rank INTEGER, total INTEGER)
system
Which rank has a total smaller than 1?
user
SELECT AVG(rank) FROM table_name_23 WHERE total < 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_23 (rank INTEGER, total INTEGER)<|im_end|>
<|im_start|>user
Which rank has a total smaller than 1?<|im_end|>
