what is the {country} for {Eldar Ryazanov} has {place of birth} as {Samara} ?
What is the name of the country that Eldar Ryazanov was born in as he was born in Samara?
Which country was Eldar Ryazanov born in as he was born in Samara?
SELECT ?t WHERE { ?c property:place_of_birth resource:Samara . ?c property:country ?t . resource:Eldar_Ryazanov property:place_of_birth ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q381944> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q894> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q381944 p:P19 ?s . ?s ps:P19 wd:Q894 . ?s pq:P17 ?value}