SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/routeEnd> <http://dbpedia.org/resource/Pahang> . ?x <http://dbpedia.org/ontology/county> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Road>}
What is the county of the road whose route end is Pahang ?
SELECT DISTINCT ?n WHERE { ?t property:county ?n . ?t property:route_end resource:Pahang . ?t rdf:type ontology:Road }
Malaysia
[Malaysia] is the county of the whose end road is Pahang.
[Malaysia] is a country whose ultimate destination is Pahang.