CREATE TABLE "orders" (
  "lot_no" real,
  "diagram" real,
  "mark" text,
  "builder" text,
  "fleet_numbers" text,
  "notes" text
);

Question: Name the most lot number with notes of b4 bogies and diagram of 185
SQL: SELECT MAX("lot_no") FROM "orders" WHERE "notes"='b4 bogies' AND "diagram"=185;

Question: Name the fleet numbers for diagram of 186 and lot number of 30798
SQL: SELECT "fleet_numbers" FROM "orders" WHERE "diagram"=186 AND "lot_no"=30798;