SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/largestCity> <http://dbpedia.org/resource/Lima> }
Which country's largest city is Lima?
SELECT DISTINCT ?j WHERE { ?j property:largest_city resource:Lima }
Peru
[Peru] is the country with Lima as the largest city.
[Peru] is a country whose largest city is Lima.