How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?
CREATE TABLE table_name_45 (losses VARCHAR, ntfa_div_2 VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_45 WHERE ntfa_div_2 = "perth" AND wins < 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (losses VARCHAR, ntfa_div_2 VARCHAR, wins VARCHAR) Question: How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10? [/INST] SELECT COUNT(losses) FROM table_name_45 WHERE ntfa_div_2 = "perth" AND wins < 10 </s>