Question: How many secondary schools have their headquarters location in Moscow Oblast or the establishment date that is not in 1841?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "secondary school" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Moscow Oblast" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1841 ) .  } }
Program:
function: Find
inputs: Moscow Oblast
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: secondary school
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1841
!=
function: FilterConcept
dependencies: 4
inputs: secondary school
function: Or
dependencies: 2
5
function: Count
dependencies: 6