What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?
CREATE TABLE table_name_2 (wins INTEGER, losses VARCHAR, ties VARCHAR, goals_against VARCHAR)
SELECT SUM(wins) FROM table_name_2 WHERE ties < 2 AND goals_against = 18 AND losses < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (wins INTEGER, losses VARCHAR, ties VARCHAR, goals_against VARCHAR) Question: What is the total wins with less than 2 ties, 18 goals, and less than 2 losses? [/INST] SELECT SUM(wins) FROM table_name_2 WHERE ties < 2 AND goals_against = 18 AND losses < 2 </s>