Table: railroad_vehicles_2
Columns: number
builder
type
date
works_number

Question: What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?
SQL: SELECT MAX("date") FROM railroad_vehicles_2 WHERE "type" = '0-4-4 forney locomotive' AND "number" > 20 AND "works_number" > 23754

Question: What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?
SQL: SELECT COUNT("date") FROM railroad_vehicles_2 WHERE "type" = '0-4-4 forney locomotive' AND "number" < 20 AND "works_number" = 1251