Question: What's the relationship between an artist and Oz (who died in Hamburg)?
Choices:
signatory
place served by transport hub
registered with
location of formation
occupation
executive producer
production company
parent organization
series spin-off
permanent resident of
Program:
function: Find
inputs: Hamburg
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: Oz
function: And
dependencies: 1
2
function: Find
inputs: artist
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Oz" . ?e_1 <place_of_death> ?e_3 . ?e_3 <pred:name> "Hamburg" . ?e_2 <pred:name> "artist" . ?e_1 ?p ?e_2 .  }
Answer: occupation