human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: League, Sport, Season, Total attendance, Average attendance
###Question: What's the average attendance of the league with a total attendance of 2268508?
gpt
SELECT Average attendance FROM table WHERE Total attendance = 2268508