Question: Michelangelo (native language name Michelangelo) has what connection to a ninja?
Choices:
distribution
contains settlement
from fictional universe
owner of
used by
risk factor
publisher
occupation
derivative work
writing system
Program:
function: Find
inputs: Michelangelo
function: FilterStr
dependencies: 0
inputs: name in native language
Michelangelo
function: Find
inputs: ninja
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Michelangelo" . ?e_1 <name_in_native_language> ?pv . ?pv <pred:value> "Michelangelo" . ?e_2 <pred:name> "ninja" . ?e_1 ?p ?e_2 .  }
Answer: occupation