CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);

Question: Who is the owner/operator of the line from Kambalda to Esperance?
SQL: SELECT "owner_operator" FROM "onshore_pipelines" WHERE "from_to"='kambalda to esperance';

Question: What is the name of the line from Karratha to Port Hedland?
SQL: SELECT "name_year_commissioned" FROM "onshore_pipelines" WHERE "from_to"='karratha to port hedland';

Question: What is the maximum diameter of the Mid West Gas Pipeline (1999)?
SQL: SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "name_year_commissioned"='mid west gas pipeline (1999)';

Question: Who is the owner operator who has license number PL 59?
SQL: SELECT "owner_operator" FROM "onshore_pipelines" WHERE "licence_number"='pl 59';

Question: What is the license number where the maximum diameter is 400 mm?
SQL: SELECT "licence_number" FROM "onshore_pipelines" WHERE "maximum_diameter"='400 mm';

Question: What is the name where the license number is PL 22?
SQL: SELECT "name_year_commissioned" FROM "onshore_pipelines" WHERE "licence_number"='pl 22';