What is the {historical country} for {capital} of {Belgrade}
Belgrade is the capital of what country?
Belgrade is the capital of what country?
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Belgrade . ?z rdf:type ontology:historical_country }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3711> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3024240> } 
 select distinct ?sbj where { ?sbj wdt:P36 wd:Q3711 . ?sbj wdt:P31 wd:Q3024240 } 
Socialist Federal Republic of Yugoslavia Kingdom of Yugoslavia Kingdom of Serbia Territory of the Military Commander in Serbia Federal Republic of Yugoslavia Serbian Despotate Democratic Federal Yugoslavia Federal People's Republic of Yugoslavia Government of National Salvation Realm of Stefan Dragutin Kingdom of Serbs, Croats and Slovenes Yugoslavia Serbia and Montenegro