CREATE TABLE table_name_10 (losses NUMBER, wins VARCHAR2, ties VARCHAR2)

what is the average losses when the wins is 9 and ties more than 0?
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0
SELECT AVG("losses") FROM "table_name_10" WHERE "ties" > 0 AND "wins" = 9