Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?

### Inputs:
table_name: table, columns: ['Position', 'Club', 'Played', 'Points', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Goal Difference']

### Response:
SELECT AVG Losses FROM table WHERE Goals against > 17 AND Goal Difference < 2 AND Points > 5