human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Week, Date, Opponent, Result, Attendance
###Question: What is the average week number of all the matches where less than 22,604 people attended?
gpt
SELECT AVG Week FROM table WHERE Attendance < 22,604