Question: What association does Black Sabbath (whose genre is stoner rock) to Heavy metal?
Choices:
developer
located in the administrative territorial entity
quotes work
narrator
discoverer or inventor
partner
famous people
ancestral home
place of publication
set in period
Program:
function: Find
inputs: heavy metal
function: Find
inputs: stoner rock
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Black Sabbath
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "heavy metal" . ?e_2 <pred:name> "Black Sabbath" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "stoner rock" . ?e_1 ?p ?e_2 .  }
Answer: famous people