user: ### NOW ANSWER:
Question: How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?
Columns: ['Position', 'Club', 'Played', 'Points', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Goal Difference']
Types: ['real', 'text', 'real', 'real', 'real', 'real', 'real', 'real', 'real', 'real']
Sample row: [1.0, 'Espanyol', 10.0, 15.0, 7.0, 1.0, 2.0, 17.0, 8.0, 9.0]
SQL:

assistant: SELECT AVG("Losses") FROM "Table" WHERE "Goals against" > 17.0 AND "Goal Difference" < 2.0 AND "Points" > 5.0;