How many years have less than 28,505 attendance?
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER) Question: How many years have less than 28,505 attendance? [/INST] SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505 ROWS </s>