What's the total losses that has more than 12 wins and 1017 against?
CREATE TABLE table_name_42 (losses VARCHAR, against VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (losses VARCHAR, against VARCHAR, wins VARCHAR) Question: What's the total losses that has more than 12 wins and 1017 against? [/INST] SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12 </s>