CREATE TABLE "churches_in_vik" (
  "parish_prestegjeld" text,
  "sub_parish_sokn" text,
  "church_name" text,
  "year_built" text,
  "location_of_the_church" text
);

Question: Which parish has a church named Vangsnes Kyrkje?
SQL: SELECT "parish_prestegjeld" FROM "churches_in_vik" WHERE "church_name"='vangsnes kyrkje';

Question: Which Sub-Parish has a church built in 1866?
SQL: SELECT "sub_parish_sokn" FROM "churches_in_vik" WHERE "year_built"='1866';

Question: When was the Hopperstad Stavkyrkje built?
SQL: SELECT "year_built" FROM "churches_in_vik" WHERE "church_name"='hopperstad stavkyrkje';

Question: When was the church in Arnafjord built?
SQL: SELECT "year_built" FROM "churches_in_vik" WHERE "location_of_the_church"='arnafjord';

Question: What is the Sub-Parish called that has a church located in Fresvik?
SQL: SELECT "sub_parish_sokn" FROM "churches_in_vik" WHERE "location_of_the_church"='fresvik';

Question: What is the church in the Sub-Parish of Fresvik called?
SQL: SELECT "church_name" FROM "churches_in_vik" WHERE "sub_parish_sokn"='fresvik';