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: Nomeie as perdas médias para empates maiores que 6 e jogados mais de 38.
 ###Tabelas: CREATE TABLE by_constituency (by_constituency_id AUTO_INCREMENT PRIMARY KEY, Constituency VARCHAR, Electorate INT, s Spoilt vote INT, Total poll (%) VARCHAR, For (%) VARCHAR, Against (%) VARCHAR) CREATE TABLE belfast_and_county_down_railway (belfast_and_county_down_railway_id AUTO_INCREMENT PRIMARY KEY, Type VARCHAR, Fleet numbers VARCHAR, Quantity made VARCHAR, Manufacturer VARCHAR, Date made VARCHAR) CREATE TABLE national_softball_congress_1947_to_1957 (national_softball_congress_1947_to_1957_id AUTO_INCREMENT PRIMARY KEY, Year INT, 1st Place Team VARCHAR, 2nd Place Team VARCHAR, 3rd Place Team VARCHAR, 4th Place Team VARCHAR, Host Location VARCHAR) CREATE TABLE final_table (final_table_id AUTO_INCREMENT PRIMARY KEY, Position INT, Club VARCHAR, Played INT, Points VARCHAR, Wins INT, Draws INT, Losses INT, Goals for INT, Goals against INT, Goal Difference INT) CREATE TABLE indy_f3_challenge (indy_f3_challenge_id AUTO_INCREMENT PRIMARY KEY, Pos. INT, Driver VARCHAR, Qualifying INT, Race 1 VARCHAR, Race 2 VARCHAR, Race 3 VARCHAR, Points INT)  
SELECT AVG Losses FROM final_table WHERE Draws > 6 AND Played > 38