Question: How many conservatories were founded later than 1921 or have a student enrollment other than 4200?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "conservatory" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1921 ) .  } UNION { ?e <students_count> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "4200"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1921
>
function: FilterConcept
dependencies: 1
inputs: conservatory
function: FindAll
function: FilterNum
dependencies: 3
inputs: students count
4200
!=
function: FilterConcept
dependencies: 4
inputs: conservatory
function: Or
dependencies: 2
5
function: Count
dependencies: 6