Question: What is the relationship between Patrick Doyle (the one that died from hanging) and hanging?
Choices:
industry
series spin-off
editor
soundtrack album
author
participant of
film editor
update method
religious order
cause of death
Program:
function: Find
inputs: hanging
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: Patrick Doyle
function: And
dependencies: 1
2
function: Find
inputs: hanging
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Patrick Doyle" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "hanging" . ?e_2 <pred:name> "hanging" . ?e_1 ?p ?e_2 .  }
Answer: cause of death