What's the gold medal count ranked 2 with a total of more than 21?
CREATE TABLE table_name_42 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_42 WHERE rank = 2 AND total > 21
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (gold VARCHAR, rank VARCHAR, total VARCHAR) Question: What's the gold medal count ranked 2 with a total of more than 21? [/INST] SELECT COUNT(gold) FROM table_name_42 WHERE rank = 2 AND total > 21 </s>