Question: What is the connection between John Davis (the one that died in Topeka) to Topeka?
Choices:
collection
writing system
commander of
has immediate cause
head of government
shares border with
place of death
stated in
manner of death
followed by
Program:
function: Find
inputs: Topeka
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: Topeka
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <place_of_death> ?e_3 . ?e_3 <pred:name> "Topeka" . ?e_2 <pred:name> "Topeka" . ?e_1 ?p ?e_2 .  }
Answer: place of death