what is the {country} for {Heinrich Heine} has {place of death} as {Paris} ?
Did Heinrich Heine die in Paris?
Is Paris the country where Heinrich Heine died?
SELECT ?h WHERE { resource:Heinrich_Heine property:place_of_death ?e . ?e property:place_of_death resource:Paris . ?e property:country ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44403> .
?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> <http://wikidata.dbpedia.org/resource/Q90> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q44403 p:P20 ?s . ?s ps:P20 wd:Q90 . ?s pq:P17 ?value}