Question: For the person who is the creator of Mighty Morphin Power Rangers (the one that is created by Haim Saban), how many businesspeople are in his/her occupation?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "businessperson" . ?e_1 <occupation> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <creator> ?e_1 . ?e_2 <pred:name> "Mighty Morphin Power Rangers" . ?e_2 <creator> ?e_3 . ?e_3 <pred:name> "Haim Saban" .   }
Program:
function: Find
inputs: Haim Saban
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Mighty Morphin Power Rangers
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: creator
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: occupation
forward
function: FilterConcept
dependencies: 6
inputs: businessperson
function: Count
dependencies: 7