Question: Belo Horizonte's country is which sovereign state?
Choices:
Cambodia
Venezuela
Weimar Republic
Kiribati
Bangladesh
Vatican City
Yemen
Brazil
Poland
Switzerland
Program:
function: Find
inputs: Belo Horizonte
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <country> ?e . ?e_1 <pred:name> "Belo Horizonte" .   }
Answer: Brazil