SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/type> <http://dbpedia.org/resource/North_Caucasus_Railway> . ?x <http://dbpedia.org/ontology/servingRailwayLine> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Station>}
Which railway line goes through the stations which are a part of the North Caucasus railway?
SELECT DISTINCT ?f WHERE { ?w property:serving_railway_line ?f . ?w rdf:type ontology:Station . ?w property:type resource:North_Caucasus_Railway }
Krasnodar, Sochi, Moscow
The serving railway lines of the stations which are part of the North Caucasus Railway are [Krasnodar, Sochi, Moscow].
The stations included in the North Caucasus Railway are [Sosnodar, Sochi, Moscow].