Mühldorf–Pilsting railway
The Mühldorf–Pilsting railway runs mainly through the province of Lower Bavaria in Germany , but part of the line crosses into Upper Bavaria as well . 
<triplet> Lower Bavaria <subj> Germany <obj> country <subj> Upper Bavaria <obj> shares border with <triplet> Upper Bavaria <subj> Lower Bavaria <obj> shares border with <subj> Germany <obj> country