user: Question: What is the average number of Byes when there were less than 0 losses and were against 1247?
Columns: ['Wins', 'Byes', 'Losses', 'Draws', 'Against']
Types: ['real', 'real', 'real', 'real', 'real']
Sample row: [15.0, 2.0, 1.0, 0.0, 982.0]
SQL:

assistant: SELECT AVG("Byes") FROM "Table" WHERE "Against" = 1247.0 AND "Draws" < 0.0;