Question: The Ivory Coast exported which republic?
Choices:
Uganda
Ukraine
Albania
Colombia
Mozambique
Zimbabwe
Italy
Germany
Sierra Leone
Namibia
Program:
function: Find
inputs: Ivory Coast
function: Relate
dependencies: 0
inputs: exported to
forward
function: FilterConcept
dependencies: 1
inputs: republic
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e_1 <exported_to> ?e . ?e_1 <pred:name> "Ivory Coast" .   }
Answer: Sierra Leone