As far as Trains go, that is a completely different subject. Very little can be compared.
First, there is few emissions standards compared to what is on vehicles. One diesel, 16 cylinder Locomotive today runs about 4500 hp, and has around 200,000 lbf. of tractive effort. With most trains running 3 to 6 Unit consists, depending on the length and weight of the train.
Second, you have to realize how Diesel electric locomotives work. The diesel engine turns a generator that powers electric traction motors on each axle, putting tractive effort to the ground. They use Dynamic braking as well as air brakes. It is basically a Hybrid vehicle, but has no battery storage capacity, only a diesel generator producing the electric power (diesel over electric hybrid.)
Third, momentum is a big factor, once you get 20,000+ ton moving it tends to stay moving. Steel wheels, rolling momentum, inertia, etc. all in play here. Physics majors on here know more about this.
Fourth, its not about MPG. Its about Ton Miles Per Gallon, Railroads are averaging about 480+ But when one rail car is about 4 times that of a semi load and trains average about 150 cars per train, making it hard to compete.