Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Quantas derrotas quando os gols contra são mais de 17, a diferença de gols é mais de 2 e os pontos são mais de 5?
 ###Tabelas: CREATE TABLE june_secondary_phase (june_secondary_phase_id AUTO_INCREMENT PRIMARY KEY, Round INT, Name VARCHAR, Position VARCHAR, School VARCHAR, Signed VARCHAR) CREATE TABLE player_win-loss_record (player_win-loss_record_id AUTO_INCREMENT PRIMARY KEY, Player VARCHAR, Total Win-Loss VARCHAR, Singles Win-Loss VARCHAR, Doubles Win-Loss VARCHAR, No. of ties INT, First year played INT, Years Played INT) CREATE TABLE alma_mater (alma_mater_id AUTO_INCREMENT PRIMARY KEY, 2005 VARCHAR, 2006 VARCHAR, 2007 VARCHAR, 2008 VARCHAR, 2009 VARCHAR, 2010 VARCHAR) CREATE TABLE characters_casts_and_recordings (characters_casts_and_recordings_id AUTO_INCREMENT PRIMARY KEY, Character VARCHAR, Original Broadway performer VARCHAR, Original Australian performer VARCHAR, Original West End performer VARCHAR, 2005 World AIDS Day Benefit Dream Cast VARCHAR) CREATE TABLE promotion_playoff (promotion_playoff_id AUTO_INCREMENT PRIMARY KEY, Position INT, Club VARCHAR, Played INT, Points INT, Wins INT, Draws INT, Losses INT, Goals for INT, Goals against INT, Goal Difference INT)  
SELECT AVG Losses FROM promotion_playoff WHERE Goals against > 17 AND Goal Difference < 2 AND Points > 5