What is the total of rank when gold is 2 and total is more than 4?
CREATE TABLE table_name_99 (rank INTEGER, gold VARCHAR, total VARCHAR)
SELECT SUM(rank) FROM table_name_99 WHERE gold = 2 AND total > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (rank INTEGER, gold VARCHAR, total VARCHAR) Question: What is the total of rank when gold is 2 and total is more than 4? [/INST] SELECT SUM(rank) FROM table_name_99 WHERE gold = 2 AND total > 4 </s>