Question: What is the relationship between Tim Curry, who died from lung cancer, and lung cancer?
Choices:
league
follows
official symbol
has contributing factor
cause of death
parent astronomical body
country
sexual orientation
country for sport
continent
Program:
function: Find
inputs: lung cancer
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: Tim Curry
function: And
dependencies: 1
2
function: Find
inputs: lung cancer
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tim Curry" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "lung cancer" . ?e_2 <pred:name> "lung cancer" . ?e_1 ?p ?e_2 .  }
Answer: cause of death