CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);

Question: How many population figures are given for Glengallen for the year when the region's total is 30554?
SQL: SELECT COUNT("population_glengallan") FROM "population" WHERE "population_region_total"=30554;

Question: What is the maximum population size in the town of Stanthorpe?
SQL: SELECT MAX("population_stanthorpe") FROM "population";

Question: What is the maximum population size in the town of Glengallen?
SQL: SELECT MAX("population_glengallan") FROM "population";

Question: What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?
SQL: SELECT MAX("population_stanthorpe") FROM "population" WHERE "population_rosenthal"=1548;

Question: How many population total figures are there for the year when Allora's population was 2132?
SQL: SELECT COUNT("population_region_total") FROM "population" WHERE "population_allora"=2132;