What is the sum of all gold medals for Algeria when total medals is less than 3?
CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_98 WHERE nation = "algeria" AND total < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR, total VARCHAR) Question: What is the sum of all gold medals for Algeria when total medals is less than 3? [/INST] SELECT SUM(gold) FROM table_name_98 WHERE nation = "algeria" AND total < 3 </s>