CREATE TABLE "locomotives_and_rolling_stock" (
  "number" text,
  "tms_number" text,
  "builder" text,
  "year_built" real,
  "carriage_type" text
);

Question: What where the tms numbers built in 1923
SQL: SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "year_built"=1923;

Question: What year was the carriage type is 47' 6" 'birdcage' gallery coach built
SQL: SELECT "year_built" FROM "locomotives_and_rolling_stock" WHERE "carriage_type"='47'' 6\" ''Birdcage'' gallery coach';

Question: What tms were built nzr addington in the year 1913
SQL: SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "builder"='NZR Addington' AND "year_built"=1913;