CREATE TABLE "municipalities_of_midhordland" (
  "name" text,
  "innhabitants" real,
  "area" real,
  "mayor" text,
  "party" text,
  "municipal_code" real,
  "language_form" text
);

Question: How many people did Mayor Olav Martin Vik preside over?
SQL: SELECT AVG("innhabitants") FROM "municipalities_of_midhordland" WHERE "mayor"='olav martin vik';

Question: What's the area of askøy, with a Municipal code less than 1247?
SQL: SELECT SUM("area") FROM "municipalities_of_midhordland" WHERE "name"='askøy' AND "municipal_code"<1247;

Question: What Mayor is from the KRF Party?
SQL: SELECT "mayor" FROM "municipalities_of_midhordland" WHERE "party"='krf';

Question: What's the Municipal code of the FRP Party with an area of 100?
SQL: SELECT SUM("municipal_code") FROM "municipalities_of_midhordland" WHERE "party"='frp' AND "area"=100;

Question: How many people does the KRF Party preside over?
SQL: SELECT AVG("innhabitants") FROM "municipalities_of_midhordland" WHERE "party"='krf';