Table: locomotive_history
Columns: locomotive_superintendent
gnosr_class
lner_class
quantity_built
passed_to_lner
manufacturer
date_introduced

Question: Who was the Locomotive superintendent has a NER class of d45?
SQL: SELECT "locomotive_superintendent" FROM locomotive_history WHERE "lner_class" = 'd45'

Question: Which LNER class was introduced in 1885 and GNoSR class of g?
SQL: SELECT "lner_class" FROM locomotive_history WHERE "date_introduced" = '1885' AND "gnosr_class" = 'g'

Question: Which LNER class has been Passed to LNER larger than 3 and a introduced in 1895–98?
SQL: SELECT "lner_class" FROM locomotive_history WHERE "passed_to_lner" > 3 AND "date_introduced" = '1895–98'