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

Question: What's the capacity that has the highest greater than 1,763 and is at Hampden Park?
SQL: SELECT MIN("capacity") FROM "attendances" WHERE "stadium"='hampden park' AND "highest">'1,763';

Question: What's the highest with a capacity of greater than 4,000 and an average of 615?
SQL: SELECT MAX("highest") FROM "attendances" WHERE "average"=615 AND "capacity">'4,000';

Question: At Balmoor Stadium, what's the total average having a greater than 400 lowest?
SQL: SELECT COUNT("average") FROM "attendances" WHERE "stadium"='balmoor' AND "lowest">400;