CREATE TABLE table_54241 ("Class" TEXT, "Type" TEXT, "Quantity" FLOAT, "Barry Nos." TEXT, "GWR Nos." TEXT)

Which class is smaller than 5 and the GWR is 1322 1323?
SELECT "Class" FROM table_54241 WHERE "Quantity" < '5' AND "GWR Nos." = '1322–1323'
SELECT "Class" FROM "table_54241" WHERE "GWR Nos." = '1322–1323' AND "Quantity" < '5'