Question: How many religions were established in a year other than 1868 or were founded by Gautama Buddha?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "religion" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1868 ) .  } UNION { ?e <founded_by> ?e_1 . ?e_1 <pred:name> "Gautama Buddha" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1868
!=
function: FilterConcept
dependencies: 1
inputs: religion
function: Find
inputs: Gautama Buddha
function: Relate
dependencies: 3
inputs: founded by
backward
function: FilterConcept
dependencies: 4
inputs: religion
function: Or
dependencies: 2
5
function: Count
dependencies: 6