Question: What is the connection between Bangkok to Moscow (the one that is the twinned administrative body of Beijing)?
Choices:
maintained by
has dialect (DEPRECATED)
basic form of government
home port
illustrator
twinned administrative body
record label
owner of
has parts of the class
film crew member
Answer: twinned administrative body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bangkok" . ?e_2 <pred:name> "Moscow" . ?e_3 <twinned_administrative_body> ?e_2 . ?e_3 <pred:name> "Beijing" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Bangkok
function: Find
inputs: Beijing
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Moscow
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4