Question: How is Raphael related to Rome (the one that is the working location of Leonardo da Vinci) ?
Choices: partner
librettist
screenwriter
office held by head of state
is a list of
given name
separated from
official color
eye color
place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Raphael" . ?e_2 <pred:name> "Rome" . ?e_3 <work_location> ?e_2 . ?e_3 <pred:name> "Leonardo da Vinci" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Raphael
function: Find
inputs: Leonardo da Vinci
function: Relate
dependencies: 1
inputs: work location
forward
function: Find
inputs: Rome
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: place of death