What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?
CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_89 WHERE rank < 5 AND gold > 5 AND bronze > 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR) Question: What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8? [/INST] SELECT SUM(total) FROM table_name_89 WHERE rank < 5 AND gold > 5 AND bronze > 8 </s>