CREATE TABLE table_name_42 (losses VARCHAR(255), against VARCHAR(255), wins VARCHAR(255))
What's the total losses that has more than 12 wins and 1017 against?
    
SQL: SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12