Question: Which sovereign state is the country of the capital whose official name is Nairobi?
Choices:
Iran
Kenya
Holy Roman Empire
Switzerland
Japan
Canada
Russian Soviet Federative Socialist Republic
Kiribati
Socialist Federal Republic of Yugoslavia
Burkina Faso
Answer: Kenya
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <country> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "capital" . ?e_1 <official_name> ?pv . ?pv <pred:value> "Nairobi" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
Nairobi
function: FilterConcept
dependencies: 1
inputs: capital
function: Relate
dependencies: 2
inputs: country
forward
function: FilterConcept
dependencies: 3
inputs: sovereign state
function: What
dependencies: 4