Question: What class has 4-4-0 wheels and was less than number 40 built?
SQL: SELECT Class FROM table WHERE Wheels = 4-4-0 AND No. Built < 40