CREATE TABLE "w" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);

Question: what is the geo id when the land (sqmi) is less than 36.112, the latitude is more than 47.536618, the township is west bay and water (sqmi) is more than 0.209?
SQL: SELECT SUM("geo_id") FROM "w" WHERE "land_sqmi"<36.112 AND "latitude">47.536618 AND "township"='west bay' AND "water_sqmi">0.209;

Question: what is the township when the land (sqmi) is more than 36.112, the geo id is higher than 3801985060 and the latitude is 46.062384?
SQL: SELECT "township" FROM "w" WHERE "land_sqmi">36.112 AND "geo_id">3801985060 AND "latitude"=46.062384;

Question: what is the longitude when the water (sqmi) is 0.317 and the ansi code is higher than 1759695?
SQL: SELECT AVG("longitude") FROM "w" WHERE "water_sqmi"=0.317 AND "ansi_code">1759695;

Question: what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?
SQL: SELECT "county" FROM "w" WHERE "latitude">48.581299 AND "ansi_code">1037103 AND "geo_id"=3801985060;

Question: what is the highest longitude for county mountrail and the water (sqmi) is less than 0.075?
SQL: SELECT MAX("longitude") FROM "w" WHERE "county"='mountrail' AND "water_sqmi"<0.075;