CREATE TABLE table_name_16 (attendance INTEGER, record VARCHAR(255))
What was the average attendance of a team with a 38–31–8 record?
    
SQL: SELECT AVG(attendance) FROM table_name_16 WHERE record = "38–31–8"