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_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
system
What is the rank for total less than 5, 1 bronze and less than 1 silver?
user
SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 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_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)<|im_end|>
<|im_start|>user
What is the rank for total less than 5, 1 bronze and less than 1 silver?<|im_end|>
