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

Question: What is the date for Orangeville?
SQL: SELECT "date" FROM "locomotives" WHERE "name"='orangeville';

Question: Who is the builder with a works number of 2534?
SQL: SELECT "builder" FROM "locomotives" WHERE "works_number"='2534';

Question: Who is the name with a works number of 809?
SQL: SELECT "name" FROM "locomotives" WHERE "works_number"='809';

Question: In early 1873, Owen sound had what works number?
SQL: SELECT "works_number" FROM "locomotives" WHERE "date"='early 1873' AND "name"='owen sound';

Question: What was the name for the locomotive with a type of 2-8-0 and a number of 20?
SQL: SELECT "name" FROM "locomotives" WHERE "type"='2-8-0' AND "number"=20;