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 attendance for the game against the Kansas City Chiefs earlier than week 13?
gpt
SELECT AVG Attendance FROM table WHERE Opponent = kansas city chiefs AND Week < 13