Question: tell me the relationship between William Morris (who died from myocardial infarction) to myocardial infarction
Choices:
candidate
continent
destination point
position played on team / speciality
editor
cause of death
talk show guest
designed to carry
librettist
discoverer or inventor
Answer: cause of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "William Morris" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "myocardial infarction" . ?e_2 <pred:name> "myocardial infarction" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: myocardial infarction
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: William Morris
function: And
dependencies: 1
2
function: Find
inputs: myocardial infarction
function: QueryRelation
dependencies: 3
4