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: Quantos jogos tiveram uma média de 12796?
 ###Tabelas: CREATE TABLE summary_of_qualification (summary_of_qualification_id AUTO_INCREMENT PRIMARY KEY, Confederation VARCHAR, Teams started VARCHAR, Teams that have secured qualification VARCHAR, Teams that can still qualify VARCHAR, Teams that have been eliminated VARCHAR, Remaining places in finals VARCHAR, Total places in finals VARCHAR, Qualifying start date VARCHAR, Qualifying end date VARCHAR) CREATE TABLE the_scotch_arthurs (the_scotch_arthurs_id AUTO_INCREMENT PRIMARY KEY, BR No. INT, SR No. INT, SR Name VARCHAR, Builder VARCHAR, Built VARCHAR, Withdrawn VARCHAR) CREATE TABLE calendar (calendar_id AUTO_INCREMENT PRIMARY KEY, Round INT, Date VARCHAR, Grand Prix VARCHAR, Circuit VARCHAR, Pole Position VARCHAR, Fastest Lap VARCHAR, Race Winner VARCHAR) CREATE TABLE attendance (attendance_id AUTO_INCREMENT PRIMARY KEY, Team VARCHAR, Home Gms INT, Home Total INT, Home Avg INT, Top Home Crowd VARCHAR, Road Gms INT, Road Total INT, Road Avg INT, Overall Gms INT, Overall Total INT, Overall Avg INT) CREATE TABLE 2011_2012_table (2011_2012_table_id AUTO_INCREMENT PRIMARY KEY, Club VARCHAR, Played VARCHAR, Drawn VARCHAR, Lost VARCHAR, Points for VARCHAR, Points against VARCHAR, Tries for VARCHAR, Tries against VARCHAR, Try bonus VARCHAR, Losing bonus VARCHAR, Points VARCHAR)  
SELECT COUNT Overall Gms FROM attendance WHERE Overall Avg = 12796