Question: How is Bosnia and Herzegovina related to Sarajevo that is the twinned administrative body of Magdeburg?
Choices:
language of work or name
religious order
ancestral home
works in collection
office contested
writing system
film release region
editor
capital
language used
Answer: capital
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bosnia and Herzegovina" . ?e_2 <pred:name> "Sarajevo" . ?e_3 <twinned_administrative_body> ?e_2 . ?e_3 <pred:name> "Magdeburg" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Bosnia and Herzegovina
function: Find
inputs: Magdeburg
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Sarajevo
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4