What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR, bronze VARCHAR) Question: What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals? [/INST] SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2 </s>