Question: What language is spoken in a sovereign state with Kabul, the capital of Afghanistan ?
Choices:
Dutch
Afghanistan
Russians
Khmer
Finnish
Indonesian
Filipino
Kabul
Pashto
Persian
Answer: Pashto
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "language" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "Kabul" . ?e_3 <capital> ?e_2 . ?e_3 <pred:name> "Afghanistan" .   }
Program:
function: Find
inputs: Afghanistan
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Kabul
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Relate
dependencies: 5
inputs: country
backward
function: FilterConcept
dependencies: 6
inputs: language
function: What
dependencies: 7