Question: How is the politician William James related to London (where Alexander Korda died)?
Choices:
work location
indigenous to
relative
location
doctoral student
named after
country for sport
connects with
designed to carry
position played on team / speciality
Answer: work location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "William James" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "London" . ?e_4 <place_of_death> ?e_2 . ?e_4 <pred:name> "Alexander Korda" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: William James
function: And
dependencies: 1
2
function: Find
inputs: Alexander Korda
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: London
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7