CREATE TABLE "list_of_preserved_rm_bs" (
  "lot_no" real,
  "diagram" real,
  "built" text,
  "builder" text,
  "fleet_numbers" text
);

Question: What is the total diagram for builder york?
SQL: SELECT SUM("diagram") FROM "list_of_preserved_rm_bs" WHERE "builder"='york';

Question: What fleet  numbers have a diagram less than 99 and built in 1960?
SQL: SELECT "fleet_numbers" FROM "list_of_preserved_rm_bs" WHERE "diagram"<99 AND "built"='1960';

Question: What diagram built in 1962 has a lot number smaller than 30702?
SQL: SELECT MIN("diagram") FROM "list_of_preserved_rm_bs" WHERE "built"='1962' AND "lot_no"<30702;

Question: What builder has lot number 30702?
SQL: SELECT "builder" FROM "list_of_preserved_rm_bs" WHERE "lot_no"=30702;