Qual é o total de derrotas que tem mais de 12 vitórias e 1017 contra?
CREATE TABLE table_name_42 (losses VARCHAR, against VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12