Question: How is guitarist Peter Horton related to composer?
Choices:
parent astronomical body
terminus
product or material produced
located on terrain feature
Wikidata property
distribution
interests
occupation
location
famous people
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Horton" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "guitarist" . ?e_2 <pred:name> "composer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: guitarist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Peter Horton
function: And
dependencies: 1
2
function: Find
inputs: composer
function: QueryRelation
dependencies: 3
4