Question: Which city is the capital of Odisha (the one that has the captital Bhubaneswar)?
Choices:
Cairo
Trieste
Bergen
Kagoshima
Bhubaneswar
Abidjan
Santo Domingo
Galway
Kingston
Cork
Program:
function: Find
inputs: Bhubaneswar
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Odisha
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Odisha" . ?e_1 <capital> ?e_2 . ?e_2 <pred:name> "Bhubaneswar" .   }
Answer: Bhubaneswar