CREATE TABLE "references" (
  "br_no" real,
  "name" text,
  "builder" text,
  "whenbuilt" text,
  "withdrawn" text
);

Question: When was moray firth built?
SQL: SELECT "whenbuilt" FROM "references" WHERE "name"='moray firth';

Question: Name the withdrawn for charles dickens
SQL: SELECT "withdrawn" FROM "references" WHERE "name"='charles dickens';