Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?
CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
SELECT "works_number" FROM "locomotives" WHERE "builder"='canadian engine & machinery company' AND "number"<3;