Question: What is the relationship between David Mills (the one that has the occupation of composer) and a poet?
Choices:
history of topic
sex or gender
record label
sponsor
occupation
item operated
programming paradigm
next higher rank
location of formation
industry
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "David Mills" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "composer" . ?e_2 <pred:name> "poet" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: composer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: David Mills
function: And
dependencies: 1
2
function: Find
inputs: poet
function: QueryRelation
dependencies: 3
4