Question: How is pianist Robert Shaw related to the piano?
Choices:
interested in
member of political party
instrument
sex or gender
official religion
employer
editor
league
takes place in fictional universe
signatory
Program:
function: Find
inputs: piano
function: Relate
dependencies: 0
inputs: instrument
backward
function: Find
inputs: Robert Shaw
function: And
dependencies: 1
2
function: Find
inputs: piano
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robert Shaw" . ?e_1 <instrument> ?e_3 . ?e_3 <pred:name> "piano" . ?e_2 <pred:name> "piano" . ?e_1 ?p ?e_2 .  }
Answer: instrument