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

Question: Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?
SQL: SELECT "gwr_nos" FROM "locomotives_of_the_great_western_railway" WHERE "quantity"<2 AND "m_swj_nos"='9';

Question: Which manucfaturer's type was 2-6-0?
SQL: SELECT "manufacturer" FROM "locomotives_of_the_great_western_railway" WHERE "type"='2-6-0';