SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/routeEnd> <http://dbpedia.org/resource/Kazan> . ?x <http://dbpedia.org/ontology/routeStart> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/RailwayLine>}
Where does the railway tracks start, which ends in Kazan?
SELECT DISTINCT ?h WHERE { ?h property:route_start ?h . ?h property:route_end resource:Kazan . ?h rdf:type ontology:Railway_Line }
Moscow
The start of the route of the railway line which ends in Kazan is [Moscow].
The beginning of the railway line ending in Kazan, [Moscow].