CREATE TABLE "matches" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);

Question: What is the average Attendance at Venue A on 16 October 2004?
SQL: SELECT AVG("attendance") FROM "matches" WHERE "venue"='a' AND "date"='16 october 2004';

Question: What is the lowest Attendance when Middlesbrough played at Venue A?
SQL: SELECT MIN("attendance") FROM "matches" WHERE "opponent"='middlesbrough' AND "venue"='a';