Table: bavarian_locomotives_2
Columns: class
number_s
quantity
year_s_of_manufacture
type

Question: Which class has fewer than 10 and number(s) names?
SQL: SELECT "class" FROM bavarian_locomotives_2 WHERE "quantity" < 10 AND "number_s" = 'names'

Question: What is the type with a quantity of fewer than 6 and number(s) 5201?
SQL: SELECT "type" FROM bavarian_locomotives_2 WHERE "quantity" < 6 AND "number_s" = '5201'