CREATE TABLE "attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);

Question: What is the high capacity that has an average under 489 and a highest over 778?
SQL: SELECT MAX("capacity") FROM "attendances" WHERE "average"<489 AND "highest">778;