Question: What is the republic whose country is Mozambique?
Choices:
Serbia
Mozambique
Namibia
Seychelles
Germany
Colombia
Togo
Russians
Rwanda
Tunisia
Program:
function: Find
inputs: Mozambique
function: Relate
dependencies: 0
inputs: country
backward
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 <country> ?e_1 . ?e_1 <pred:name> "Mozambique" .   }
Answer: Mozambique