Question: What rock band whose genre is the music that is the category of Dio (that is famous for hard rock)?
Choices:
The Police
Camel
Traffic
Judas Priest
Guns N’ Roses
Kiss
Scorpions
Queen
Yngwie Malmsteen
Led Zeppelin
Answer: Scorpions
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" . ?e <genre> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "music" . ?e_2 <genre> ?e_1 . ?e_2 <pred:name> "Dio" . ?e_3 <famous_people> ?e_2 . ?e_3 <pred:name> "hard rock" .   }
Program:
function: Find
inputs: hard rock
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Dio
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: music
function: Relate
dependencies: 5
inputs: genre
backward
function: FilterConcept
dependencies: 6
inputs: rock band
function: What
dependencies: 7