Question: What is the relationship between Daredevil and Ninja?
Choices:
student
employer
place of origin (Switzerland)
highest judicial authority
composer
occupation
official residence
archives at
home venue
mascot
Program:
function: Find
inputs: ninja
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Daredevil
function: And
dependencies: 1
2
function: Find
inputs: ninja
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Daredevil" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "ninja" . ?e_2 <pred:name> "ninja" . ?e_1 ?p ?e_2 .  }
Answer: occupation