CREATE TABLE table_name_95 (class VARCHAR(255), wheels VARCHAR(255), no_built VARCHAR(255))
What class has 4-4-0 wheels and was less than number 40 built?
    
SQL: SELECT class FROM table_name_95 WHERE wheels = "4-4-0" AND no_built < 40