what is the average losses when the wins is 9 and ties more than 0?
CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR)
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR) Question: what is the average losses when the wins is 9 and ties more than 0? [/INST] SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0 </s>