CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_mareeba" real,
  "population_atherton" real,
  "population_herberton" real,
  "population_eacham" real
);

Question: In what year was the Population of Eacham 6,074 and the population of Atherton was less than 10,119?
SQL: SELECT SUM("year") FROM "population" WHERE "population_eacham"='6,074' AND "population_atherton"<'10,119';

Question: What was the population of Herberton when Mareeba had 17,129 people and Eacham had a population smaller than 5,609?
SQL: SELECT SUM("population_herberton") FROM "population" WHERE "population_mareeba"='17,129' AND "population_eacham"<'5,609';

Question: What was the sum total of the region after 1976 when Mareeba had population was more than 18,212?
SQL: SELECT SUM("population_region_total") FROM "population" WHERE "year">1976 AND "population_mareeba">'18,212';