Question: How is Mexico City related to San Juan (the one that is the residence of River Phoenix)?
Choices: doctoral advisor
residence
twinned administrative body
capital of
position held
interests
has quality
medical condition
fabrication method
chairperson
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Mexico City" . ?e_2 <pred:name> "San Juan" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "River Phoenix" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Mexico City
function: Find
inputs: River Phoenix
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: San Juan
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: twinned administrative body