Instruct: What's the total losses that has more than 12 wins and 1017 against?
Output: SELECT COUNT Losses FROM table WHERE Against = 1017 AND Wins > 12