Question: Tell me the relationship between heavy metal and Dio (the one who is famous for hard rock)
Choices: risk factor
field of work
indigenous to
religious order
uses
child
doctoral student
famous people
separated from
occupant
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "heavy metal" . ?e_2 <pred:name> "Dio" . ?e_3 <famous_people> ?e_2 . ?e_3 <pred:name> "hard rock" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: heavy metal
function: Find
inputs: hard rock
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: Dio
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: famous people