What is Type, when Works Number is "unknown"?
CREATE TABLE "locomotives" (
  "name" text,
  "builder" text,
  "type" text,
  "works_number" text,
  "built" real
);
SELECT "type" FROM "locomotives" WHERE "works_number"='unknown';