What is the maximum total medals when the rank is 8?
CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR)
SELECT MAX(total) FROM table_name_64 WHERE rank = "8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR) Question: What is the maximum total medals when the rank is 8? [/INST] SELECT MAX(total) FROM table_name_64 WHERE rank = "8" </s>