Table: gw_loco_details_2
Columns: class
type
quantity
barry_nos
gwr_nos

Question: Which class is smaller than 5 and the GWR is 1322–1323?
SQL: SELECT "class" FROM gw_loco_details_2 WHERE "quantity" < 5 AND "gwr_nos" = '1322–1323'