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: What is the total population of Rosenthal that's less than 24,300 for the population and has a population for Glengallan less than 3,410?
SQL: SELECT SUM("population_rosenthal") FROM "population" WHERE "population_region_total"<'24,300' AND "population_glengallan"<'3,410';

Question: What is the greatest Rosenthal poulation for a region that has 30,554 people and a Glegallan population less than 4,088?
SQL: SELECT MAX("population_rosenthal") FROM "population" WHERE "population_region_total"='30,554' AND "population_glengallan"<'4,088';

Question: How many people are there for Glengallan having a Rosenthal population less than 1,582 for years before 1976 with a total population of 25,917?
SQL: SELECT COUNT("population_glengallan") FROM "population" WHERE "population_rosenthal"<'1,582' AND "year"<1976 AND "population_region_total"='25,917';

Question: How many people live in an area that has a population in Rosenthal smaller than 2,460 while having a population of 4,639 for Glegallan as well as having an Allora population greater than 2,106?
SQL: SELECT COUNT("population_region_total") FROM "population" WHERE "population_rosenthal"<'2,460' AND "population_glengallan"='4,639' AND "population_allora">'2,106';

Question: When were the years on which warwick had a population greater than 10,956 and allora had a population bigger than 2,439?
SQL: SELECT SUM("year") FROM "population" WHERE "population_warwick"='10,956' AND "population_allora">'2,439';

Question: How many people in Stanthorpe had a population matching Rosenthan of 1,553 and a population greater than 25,917?
SQL: SELECT COUNT("population_stanthorpe") FROM "population" WHERE "population_rosenthal"='1,553' AND "population_region_total">'25,917';