Question: What is the relationship between Gene Callahan (the one that died in Baton Rouge) and natural causes?
Choices:
health specialty
programming paradigm
geographic distribution
home port
affiliation
enclave within
dissertation submitted to
place served by transport hub
manner of death
work location
Answer: manner of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gene Callahan" . ?e_1 <place_of_death> ?e_3 . ?e_3 <pred:name> "Baton Rouge" . ?e_2 <pred:name> "natural causes" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Baton Rouge
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: Gene Callahan
function: And
dependencies: 1
2
function: Find
inputs: natural causes
function: QueryRelation
dependencies: 3
4