What is {place of death} of {Leo III} that is {country} is {Papal States} ?
Where did Leo III die?
What is the demised placce of Leo III}?
SELECT ?p WHERE { ?s property:country resource:Papal_States . resource:Leo_III property:place_of_death ?s . ?s property:place_of_death ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q132086> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P17> <http://wikidata.dbpedia.org/resource/Q170174>
} 

SELECT ?obj WHERE { wd:Q132086 p:P20 ?s . ?s ps:P20 ?obj . ?s pq:P17 wd:Q170174 }