Question: What is the correlation between Dynasty (whose genre is hard rock) and hard rock?
Choices:
genre
art director
source of material
religious order
relative
series spin-off
quotes work
official symbol
native language
voice actor
Program:
function: Find
inputs: hard rock
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Dynasty
function: And
dependencies: 1
2
function: Find
inputs: hard rock
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Dynasty" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "hard rock" . ?e_2 <pred:name> "hard rock" . ?e_1 ?p ?e_2 .  }
Answer: genre