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

Question: What is the greatest capacity when the largest number in attendance is 6,192?
SQL: SELECT MAX("capacity") FROM "attendances" WHERE "highest">'6,192';

Question: What is the total number for smallest number in attendance at Broadwood Stadium when the largest attendance was 6,192, with an average of 2,468?
SQL: SELECT COUNT("lowest") FROM "attendances" WHERE "highest"<'6,192' AND "average"<'2,468' AND "stadium"='broadwood stadium';

Question: What is the sum of the lowest in attendance when the most attendance was 4,914 for the Livingston team?
SQL: SELECT SUM("lowest") FROM "attendances" WHERE "highest"<'4,914' AND "team"='livingston';

Question: What is the sum of the lowest in attendance when the average is 1,166 and most in attendance is less than 2,215?
SQL: SELECT SUM("lowest") FROM "attendances" WHERE "average"='1,166' AND "highest"<'2,215';

Question: What is the highest average number in attendance when the most in attendance is 5,078?
SQL: SELECT MAX("average") FROM "attendances" WHERE "highest"='5,078';