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

Question: Average larger than 2,279, and a Team of queen of the south, and a Capacity larger than 6,412 has what lowest of the sum?
SQL: SELECT SUM("lowest") FROM "attendances" WHERE "average">'2,279' AND "team"='queen of the south' AND "capacity">'6,412';

Question: Highest larger than 2,169, and a Average larger than 3,502 involves which team?
SQL: SELECT "team" FROM "attendances" WHERE "highest">'2,169' AND "average">'3,502';

Question: Highest smaller than 3,378, and a Stadium of cappielow has what average capacity?
SQL: SELECT AVG("capacity") FROM "attendances" WHERE "highest"<'3,378' AND "stadium"='cappielow';