what is the {country} for {Matthias Corvinus} has {place of birth} as {Cluj-Napoca} ?
Which is the country of birth of Matthias Corvinus?
What country is Cluj-Napoca in, where Matthias Corvinus was born?
SELECT ?z WHERE { ?o property:country ?z . ?o property:place_of_birth resource:Cluj-Napoca . resource:Matthias_Corvinus property:place_of_birth ?o }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188634> .
?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/Q100188> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q188634 p:P19 ?s . ?s ps:P19 wd:Q100188 . ?s pq:P17 ?value}