CREATE TABLE "hugh_smellie_1878_1890" (
  "class" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);

Question: In 1879-81 with number built 4, what is the LMS nos?
SQL: SELECT "lms_nos" FROM "hugh_smellie_1878_1890" WHERE "date"='1879-81' AND "no_built"=4;

Question: On which date was the class 157?
SQL: SELECT "date" FROM "hugh_smellie_1878_1890" WHERE "class"=157;