Question: How is Max Weber Max Weber (the one that works in the location Berlin) connected to Riga?
Choices:
model item
exclave of
field of this occupation
position held
place of burial
located in or next to body of water
contributor(s) to the creative work
dialect of
place of death
designated as terrorist by
Answer: place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Max Weber" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Berlin" . ?e_2 <pred:name> "Riga" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Berlin
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: Max Weber
function: And
dependencies: 1
2
function: Find
inputs: Riga
function: QueryRelation
dependencies: 3
4