CREATE TABLE "references" (
  "br_sr_no" text,
  "sr_name" text,
  "lswr_no" real,
  "builder" text,
  "built" real,
  "to_io_w" real,
  "withdrawn" real
);

Question: What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?
SQL: SELECT COUNT("built") FROM "references" WHERE "withdrawn"=1967 AND "br_sr_no"='w27' AND "to_io_w"<1926;

Question: What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?
SQL: SELECT COUNT("withdrawn") FROM "references" WHERE "lswr_no">210 AND "to_io_w"=1923;

Question: What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927?
SQL: SELECT "br_sr_no" FROM "references" WHERE "withdrawn"=1967 AND "built"<1892 AND "to_io_w">1927 AND "sr_name"='freshwater';