Question: How is Robert Wagner (who worked in Graz) related to Graz?
Choices:
medical treatment
film release region
signatory
home port
architect
official color
occupation
appointed by
work location
location
Program:
function: Find
inputs: Graz
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: Richard Wagner
function: And
dependencies: 1
2
function: Find
inputs: Graz
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Richard Wagner" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Graz" . ?e_2 <pred:name> "Graz" . ?e_1 ?p ?e_2 .  }
Answer: work location