Question: What association does Alan Bates, who died of Pancreatic cancer, have with the Academy Award for best Actor?
Choices:
capital
has part
nominated for
distribution
substitute/deputy/replacement of office/officeholder
place of origin (Switzerland)
executive producer
location of formation
cites
set in period
Answer: nominated for
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alan Bates" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "pancreatic cancer" . ?e_2 <pred:name> "Academy Award for Best Actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: pancreatic cancer
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: Alan Bates
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Actor
function: QueryRelation
dependencies: 3
4