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

Question: What is the length for a diameter totaling 450 mm?
SQL: SELECT "length" FROM "onshore_pipelines" WHERE "maximum_diameter"='450 mm';

Question: What is Esperance pipeline co total diameter?
SQL: SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "owner_operator"='Esperance Pipeline Co';