Question: How many fictional professionals are a relative of Michelangelo (who has the occupation of ninja)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional profession" . ?e_1 <relative> ?e . ?e_1 <pred:name> "Michelangelo" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "ninja" .   }
Program:
function: Find
inputs: ninja
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Michelangelo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: relative
forward
function: FilterConcept
dependencies: 4
inputs: fictional profession
function: Count
dependencies: 5
Answer: 0