What is {place of death} of {Carl Theodor Dreyer} that is {country} is {Denmark} ?
Where did Carl Theodor Dreyer, who was born in Denmark, die?
Where Carl Theodor Dreyer born at Denmark died?
SELECT ?d WHERE { resource:Carl_Theodor_Dreyer property:place_of_death ?e . ?e property:country resource:Denmark . ?e property:place_of_death ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q51127> .
?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/Q35>
} 

SELECT ?obj WHERE { wd:Q51127 p:P20 ?s . ?s ps:P20 ?obj . ?s pq:P17 wd:Q35 }