Which class is smaller than 5 and the GWR is 1322–1323?
CREATE TABLE "barry_railway" (
  "class" text,
  "type" text,
  "quantity" real,
  "barry_nos" text,
  "gwr_nos" text
);
SELECT "class" FROM "barry_railway" WHERE "quantity"<5 AND "gwr_nos"='1322–1323';