user: ### NOW ANSWER:
Question: What's the total losses that has more than 12 wins and 1017 against?
Columns: ['Benalla DFL', 'Wins', 'Losses', 'Draws', 'Byes', 'Against']
Types: ['text', 'real', 'real', 'real', 'real', 'real']
Sample row: ['Bonnie Doon', 16.0, 0.0, 0.0, 4.0, 382.0]
SQL:

assistant: SELECT COUNT("Losses") FROM "Table" WHERE "Against" = 1017.0 AND "Wins" > 12.0;