CREATE TABLE "locomotives" (
  "number" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);

Question: What is the Works Number that has a Number of 153 in 1916?
SQL: SELECT "works_number" FROM "locomotives" WHERE "date"='1916' AND "number"='153';

Question: On what Date was the Works Number 7?
SQL: SELECT "date" FROM "locomotives" WHERE "works_number"='7';

Question: Which Builder has a Works Number of 16272?
SQL: SELECT "builder" FROM "locomotives" WHERE "works_number"='16272';

Question: On what Date was the Works Number 12?
SQL: SELECT "date" FROM "locomotives" WHERE "works_number"='12';