what is the {country} for {Fred MacMurray} has {place of death} as {Santa Monica} ?
Where is the county Fred MacMurray died?
What country is Santa Monica in where Fred MacMurray died?
SELECT ?r WHERE { ?i property:country ?r . ?i property:place_of_death resource:Santa_Monica . resource:Fred_MacMurray property:place_of_death ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q356309> .
?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/Q47164> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q356309 p:P20 ?s . ?s ps:P20 wd:Q47164 . ?s pq:P17 ?value}