Complex sentence: St. Leonards railway station is a closed railway station on the Edinburgh and Dalkeith Railway built in 1831 to transport coal from the mining towns south of the city and the following year opened passenger services.
Split into simpler sentences: St. Leonards railway station is a closed railway station on the Edinburgh and Dalkeith Railway. The railway was built in 1831 to transport coal from the mining towns south of the city; and the following year opened passenger services.