Question: How many US public schools have a student count other than 210000 or a count exceeding 18000?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public educational institution of the United States" .  { ?e <students_count> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "210000"^^xsd:double ) .  } UNION { ?e <students_count> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "18000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: students count
210000
!=
function: FilterConcept
dependencies: 1
inputs: public educational institution of the United States
function: FindAll
function: FilterNum
dependencies: 3
inputs: students count
18000
>
function: FilterConcept
dependencies: 4
inputs: public educational institution of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3