Question: What does Queen (whose genre is art rock) have to do with heavy metal?
Choices:
source of income
statistical leader
copyright holder
eye color
located in or next to body of water
writing system
main food source
genre
honorific suffix
presenter
Program:
function: Find
inputs: art rock
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Queen
function: And
dependencies: 1
2
function: Find
inputs: heavy metal
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Queen" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "art rock" . ?e_2 <pred:name> "heavy metal" . ?e_1 ?p ?e_2 .  }
Answer: genre