Table: bavarian_locomotives
Columns: class
number_s
quantity
year_s_of_manufacture
type

Question: What number was manufactured 1 in 1841?
SQL: SELECT "number_s" FROM bavarian_locomotives WHERE "quantity" = '1' AND "year_s_of_manufacture" = '1841'

Question: What is the quantity of class B V?
SQL: SELECT "quantity" FROM bavarian_locomotives WHERE "class" = 'b v'

Question: What number corresponds to the quantity of 24?
SQL: SELECT "number_s" FROM bavarian_locomotives WHERE "quantity" = '24'