Question: How many private not-for-profit educational institutions are the places where Stephen McHattie studied, or were established  after 1884 ?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "private not-for-profit educational institution" .  { ?e_1 <educated_at> ?e . ?e_1 <pred:name> "Stephen McHattie" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1884 ) .  } }
Program:
function: Find
inputs: Stephen McHattie
function: Relate
dependencies: 0
inputs: educated at
forward
function: FilterConcept
dependencies: 1
inputs: private not-for-profit educational institution
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1884
>
function: FilterConcept
dependencies: 4
inputs: private not-for-profit educational institution
function: Or
dependencies: 2
5
function: Count
dependencies: 6