CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);

Question: What was the average attendance when the record was 58–49?
SQL: SELECT AVG("attendance") FROM "game_log" WHERE "record"='58–49';

Question: What was the attendance when the score was 8–7?
SQL: SELECT SUM("attendance") FROM "game_log" WHERE "score"='8–7';

Question: What was the attendance for july 18?
SQL: SELECT COUNT("attendance") FROM "game_log" WHERE "date"='july 18';