CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);

Question: What livery was worn on the date before 1936, with the description of Gresley RF?
SQL: SELECT "livery" FROM "list_of_great_central_railway_locomotive" WHERE "date"<1936 AND "description"='gresley rf';

Question: Which number and name has the description Gresley RB and a date before 1937?
SQL: SELECT "number_name" FROM "list_of_great_central_railway_locomotive" WHERE "description"='gresley rb' AND "date"<1937;

Question: Who is the owner before 1940, who had a number and name of no. 1222?
SQL: SELECT "owner_s" FROM "list_of_great_central_railway_locomotive" WHERE "date"<1940 AND "number_name"='no. 1222';