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

Question: What is the sum of the areas for populations of 542?
SQL: SELECT SUM("area_km_2") FROM "carleton_county_new_brunswick" WHERE "population"=542;

Question: What is the highest area for locations named Centreville having populations over 532?
SQL: SELECT MAX("area_km_2") FROM "carleton_county_new_brunswick" WHERE "population">532 AND "official_name"='centreville';