Question: How is heavy metal related to hard rockers Bon Jovi ?
Choices: license
famous people
approved by
performer
fictional universe described in
honorific suffix
has edition
place of publication
narrative location
has contributing factor
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "heavy metal" . ?e_2 <pred:name> "Bon Jovi" . ?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: Bon Jovi
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: famous people