Question: Bucharest is the capital of which country?
SPARQL (Wikidata):  select distinct ?obj where { wd:Q19660 wdt:P1376 ?obj . ?obj wdt:P31 wd:Q3024240 }