human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Date, Home Team, Result, Visiting Team, Venue, Attendance
###Question: When was the earliest year when the attendance was 77,254?
gpt
SELECT MIN Year FROM table WHERE Attendance = 77,254