Question: What does Joe Jackson (who is famous for saxophone) have to do with the Grammy Award?
Choices:
child astronomical body
film editor
operating system
connects with
killed by
substitute/deputy/replacement of office/officeholder
software engine
successful candidate
award received
filmography
Answer: award received
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Joe Jackson" . ?e_3 <famous_people> ?e_1 . ?e_3 <pred:name> "saxophone" . ?e_2 <pred:name> "Grammy Award" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: saxophone
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Joe Jackson
function: And
dependencies: 1
2
function: Find
inputs: Grammy Award
function: QueryRelation
dependencies: 3
4