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

Question: What is Name, when Builder is "Kerr Stuart"?
SQL: SELECT "name" FROM "locomotives" WHERE "builder"='kerr stuart';

Question: What is Built, when Works Number is "717"?
SQL: SELECT "built" FROM "locomotives" WHERE "works_number"='717';

Question: What is Type, when Works Number is "unknown"?
SQL: SELECT "type" FROM "locomotives" WHERE "works_number"='unknown';