The 1963 Černý Důl – Kunčice nad Labem aerial ropeway is over 8 km (5 mi) long, over 30 m high in places and carries 135 tons of limestone every hour from a quarry to the nearest train station. Its 120kW 3-phase synchronous motor requires power for a few minutes at the start and end of each day when most of the 800kg-capacity trolleys are empty, and spends most of the shift generating mains electricity and acting as a speed governor. Unlike the EV, it is fully autonomous most of the way, only 5 people are required to operate it including loading and unloading. The quarry will continue operation as long as it pays off, then the ropeway will be scrapped (projected 2033). A dude illegally rode the way up on it somewhat recently.
I wouldn't be surprised if there are electrified railway lines doing the same. Regenerate large amounts of energy into the grid while descending loaded; consume a relatively small amount of energy to haul the empty train back uphill.
An early version of the Petřín ropeway in Prague used to contain tanks in both cars. The upper one would be filled with sewage collected rainwater from the city's hilltop quarter and the energy of the descent was used to pull the other car up. Additionally, the way up cost twice as much so there was an incentive to ascend on foot, which was about as fast despite the incline.
Regular trains don't run underground. Lots of opencast mines exist .
Basically all mines have an above ground terminal where whatever you mined is unloaded from your underground trains, lifts, haul trucks or whatever else onto storage piles, then loaded onto the actual long distance trains.
If the mine entry is up a mountain, then the trip down from that point will be a net energy producer regardless of anything else.
Content aside, what a great video! It's not that old of a video but it reminds me so much of early YouTube, just friends messing around and posting it with top tier song choice.