Table: southern_locomotives
Columns: class
wheels
date
builder
no_built

Question: What class has 4-4-0 wheels and was less than number 40 built?
SQL: SELECT "class" FROM southern_locomotives WHERE "wheels" = '4-4-0' AND "no_built" < 40