CREATE TABLE "locomotives_of_the_great_western_railway" (
  "manufacturer" text,
  "type" text,
  "quantity" real,
  "sht_nos" text,
  "gwr_nos" text
);

Question: How many have SHT number 5?
SQL: SELECT MAX("quantity") FROM "locomotives_of_the_great_western_railway" WHERE "sht_nos"='5';

Question: What GWR is associated with 4?
SQL: SELECT "gwr_nos" FROM "locomotives_of_the_great_western_railway" WHERE "quantity"=4;