CREATE TABLE table_203_332 (id NUMBER, "number" CLOB, "year built" NUMBER, "builder" CLOB, "status" CLOB, "notes" CLOB)

how many of the locomotives were built before 1940 ?
SELECT COUNT(*) FROM table_203_332 WHERE "year built" < 1940
SELECT COUNT(*) FROM "table_203_332" WHERE "year built" < 1940