CREATE TABLE "communities" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);

Question: What is the population of the town with an area larger than 3.09?
SQL: SELECT AVG("population") FROM "communities" WHERE "area_km_2">3.09 AND "status"='town';

Question: What is the area of the community with a census ranking of 636 of 5,008?
SQL: SELECT AVG("area_km_2") FROM "communities" WHERE "census_ranking"='636 of 5,008';

Question: What is the area of drummond village?
SQL: SELECT MAX("area_km_2") FROM "communities" WHERE "status"='village' AND "official_name"='drummond';

Question: What is the status of the community with a census ranking of 2,418 of 5,008?
SQL: SELECT "status" FROM "communities" WHERE "census_ranking"='2,418 of 5,008';

Question: What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
SQL: SELECT MAX("area_km_2") FROM "communities" WHERE "status"='village' AND "census_ranking"='1,442 of 5,008' AND "population"<'1,778';