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

Question: What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817?
SQL: SELECT "census_ranking" FROM "communities" WHERE "area_km_2"<9.94 AND "population"<817;

Question: What is the area (in km2) for the community that has a status of village, a census ranking of 2,471 of 5,008, and a population of less than 748?
SQL: SELECT SUM("area_km_2") FROM "communities" WHERE "status"='village' AND "census_ranking"='2,471 of 5,008' AND "population"<748;

Question: What is the status for Pointe-Verte, with a population smaller than 1,137?
SQL: SELECT "status" FROM "communities" WHERE "population"<'1,137' AND "official_name"='pointe-verte';

Question: What is the area (in km2) for the village of Paquetville, with a population over 706?
SQL: SELECT AVG("area_km_2") FROM "communities" WHERE "status"='village' AND "official_name"='paquetville' AND "population">706;

Question: What is the area (in km2) for the town of lamèque, with a population of less than 4,351?
SQL: SELECT AVG("area_km_2") FROM "communities" WHERE "status"='town' AND "population"<'4,351' AND "official_name"='lamèque';