Question: What is the association of Eugene (who plays the piano) with piano?
Choices:
relative
headquarters location
instrument
nutrient
month of the year
is a list of
substitute/deputy/replacement of office/officeholder
family name
location
permanent resident of
Answer: instrument
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Eugene" . ?e_1 <instrument> ?e_3 . ?e_3 <pred:name> "piano" . ?e_2 <pred:name> "piano" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: piano
function: Relate
dependencies: 0
inputs: instrument
backward
function: Find
inputs: Eugene
function: And
dependencies: 1
2
function: Find
inputs: piano
function: QueryRelation
dependencies: 3
4