CREATE TABLE "population" (
  "year" real,
  "population_total" real,
  "caboolture" real,
  "pine_rivers" real,
  "redcliffe" real
);

Question: What is the Redcliffe population with a Pine Rivers population greater than 164,254 and a total population less than 103,669?
SQL: SELECT SUM("redcliffe") FROM "population" WHERE "pine_rivers">'164,254' AND "population_total"<'103,669';

Question: What is the Pine Rivers total population after 1947 with a Redcliffe population smaller than 68,877, a total population greater than 50,785, and a Caboolture population greater than 12,207?
SQL: SELECT COUNT("pine_rivers") FROM "population" WHERE "year">1947 AND "redcliffe"<'68,877' AND "population_total">'50,785' AND "caboolture">'12,207';

Question: What is the average Caboolture population with a Redcliffe population greater than 27,327, a Pine Rivers population greater than 119,236, and a total population greater than 344,878 after 1971?
SQL: SELECT AVG("caboolture") FROM "population" WHERE "redcliffe">'27,327' AND "pine_rivers">'119,236' AND "year">1971 AND "population_total">'344,878';