What is the {historical country} for {capital of} of {Bucharest}
Bucharest is the capital of which nation?
Bucharest is the capital of which country?
SELECT DISTINCT ?h WHERE { resource:Bucharest property:capital_of ?h . ?h rdf:type ontology:historical_country }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q19660> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3024240> } 
 select distinct ?obj where { wd:Q19660 wdt:P1376 ?obj . ?obj wdt:P31 wd:Q3024240 } 
Kingdom of Romania Principality of Wallachia United Principalities National Legionary State