Question: How many religion is influenced by Hinduism
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "religion" . ?e_1 <influenced_by> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "belief system" . ?e_1 <influenced_by> ?e_2 . ?e_2 <pred:name> "Hinduism" .   }
Program:
function: Find
inputs: Hinduism
function: Relate
dependencies: 0
inputs: influenced by
backward
function: FilterConcept
dependencies: 1
inputs: belief system
function: Relate
dependencies: 2
inputs: influenced by
forward
function: FilterConcept
dependencies: 3
inputs: religion
function: Count
dependencies: 4