CREATE TABLE "connecting_lines" (
  "line_name" text,
  "date_closed" text,
  "nimt_junction" text,
  "terminus" text,
  "length" text
);

Question: What Line has Ohakune Junction as its NIMT?
SQL: SELECT "line_name" FROM "connecting_lines" WHERE "nimt_junction"='ohakune junction';

Question: What line has Newmarket Junction terminus?
SQL: SELECT "line_name" FROM "connecting_lines" WHERE "terminus"='newmarket junction';

Question: What terminus is 3.5km in lenght?
SQL: SELECT "terminus" FROM "connecting_lines" WHERE "length"='3.5km';

Question: What line has Junction of Huntly NIMT
SQL: SELECT "line_name" FROM "connecting_lines" WHERE "nimt_junction"='huntly';