SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Bordesley_railway_station> <http://dbpedia.org/property/borough> ?uri. <http://dbpedia.org/resource/Birmingham_and_Oxford_Junction_Railway> <http://dbpedia.org/ontology/routeEnd> ?uri}
Name the borough of the Bordesley railway station which is also the route end of the Birmingham and Oxford Junction Railway?
SELECT DISTINCT ?k WHERE { resource:Birmingham_and_Oxford_Junction_Railway property:route_end ?k . resource:Bordesley_railway_station property:borough ?k }
Birmingham
The borough of the Bordesley railway station and the end of the Birmingham and Oxford Junction Railway is [Birmingham].
Bordesley station and the end of the Birmingham and Oxford Junction Railway is [Birmingham].