Table: predators_game_stats_4
Columns: date
visitor
score
home
decision
attendance
record

Question: What was the average attendance of a team with a 38–31–8 record?
SQL: SELECT AVG("attendance") FROM predators_game_stats_4 WHERE "record" = '38–31–8'