What is the least rank with more than 16 sets won and less than 1 loss?
CREATE TABLE table_name_47 (rank INTEGER, sets_won VARCHAR, loss VARCHAR)
SELECT MIN(rank) FROM table_name_47 WHERE sets_won > 16 AND loss < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (rank INTEGER, sets_won VARCHAR, loss VARCHAR) Question: What is the least rank with more than 16 sets won and less than 1 loss? [/INST] SELECT MIN(rank) FROM table_name_47 WHERE sets_won > 16 AND loss < 1 </s>