CREATE TABLE "locomotives" (
  "railway" text,
  "loco_name" text,
  "build_date" real,
  "wheels" text,
  "disposal" text
);

Question: Which railway had the earliest build date and a disposal of "Scrapped 1941?"
SQL: SELECT MIN("build_date") FROM "locomotives" WHERE "disposal"='scrapped 1941';

Question: Which railway had a loco name of Pyramus and a build date of 1911?
SQL: SELECT "railway" FROM "locomotives" WHERE "build_date"=1911 AND "loco_name"='pyramus';

Question: What was the build date of the railway(s) with 0-6-2 t wheels?
SQL: SELECT "build_date" FROM "locomotives" WHERE "wheels"='0-6-2 t';