What is the largest total when the rank is 6 and there's less than 1 gold?
CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR) Question: What is the largest total when the rank is 6 and there's less than 1 gold? [/INST] SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1 </s>