Question: How is the relation between  Yerevan to Beirut (twinned administrative body of Baghdad)?
Choices:
production designer
kit supplier
soundtrack album
librettist
copyright holder
educated at
twinned administrative body
partner
contains administrative territorial entity
winner
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Yerevan" . ?e_2 <pred:name> "Beirut" . ?e_2 <twinned_administrative_body> ?e_3 . ?e_3 <pred:name> "Baghdad" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Yerevan
function: Find
inputs: Baghdad
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Beirut
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4