Question: How is Jon Lord whose genre is rock music related to composer?
Choices: sports season of league or competition
sexual orientation
occupation
manner of death
has parts of the class
filming location
doctoral advisor
influenced by
followed by
medical condition
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jon Lord" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "rock music" . ?e_2 <pred:name> "composer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: rock music
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Jon Lord
function: And
dependencies: 1
2
function: Find
inputs: composer
function: QueryRelation
dependencies: 3
4
Answer: occupation