Question: How does James Brown (the one whose genre is gospel music) relate to pop music ?
Choices:
film regional debut venue
military rank
head coach
commander of
presenter
airline alliance
studied by
student of
geographic distribution
famous people
Answer: famous people
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "pop music" . ?e_2 <pred:name> "James Brown" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "gospel music" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: pop music
function: Find
inputs: gospel music
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: James Brown
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4