Input: Who invented the steam engine in the 1800s?
Output: 

 Who invented the first full-scale steam steam engine inside a working railway locomotive in the 1800s? 
 Richard Trevithick