CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);

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