Question: How is the rock band Metallica connected to hard rock?
Choices: legislative body
based on
studies
spouse
sports season of league or competition
programming language
head of state
set in period
genre
participant of
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Metallica" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "rock music" . ?e_2 <pred:name> "hard rock" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: rock music
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Metallica
function: And
dependencies: 1
2
function: Find
inputs: hard rock
function: QueryRelation
dependencies: 3
4
Answer: genre