CREATE TABLE table_name_16 (attendance INT, record VARCHAR)

What was the average attendance of a team with a 38 31 8 record?
SELECT AVG(attendance) FROM table_name_16 WHERE record = "38–31–8"
SELECT AVG("attendance") FROM "table_name_16" WHERE "38–31–8" = "record"