Question: How many universities' religion is the agent that is the belief system of Graham Greene (who is influenced by Robert Louis Stevenson)?
Choices:
31
32
33
34
35
36
37
38
39
40
Program:
function: Find
inputs: Robert Louis Stevenson
function: Relate
dependencies: 0
inputs: influenced by
backward
function: Find
inputs: Graham Greene
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: religion
forward
function: FilterConcept
dependencies: 4
inputs: agent
function: Relate
dependencies: 5
inputs: religion
backward
function: FilterConcept
dependencies: 6
inputs: university
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "university" . ?e <religion> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "agent" . ?e_2 <religion> ?e_1 . ?e_2 <pred:name> "Graham Greene" . ?e_2 <influenced_by> ?e_3 . ?e_3 <pred:name> "Robert Louis Stevenson" .   }
Answer: 31