Question: How many colleges have a student population exceeding 390 or a work staff exceeding 660?
Choices: 7
8
9
10
11
12
13
14
15
16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "college" .  { ?e <students_count> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "390"^^xsd:double ) .  } UNION { ?e <employees> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "660"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: students count
390
>
function: FilterConcept
dependencies: 1
inputs: college
function: FindAll
function: FilterNum
dependencies: 3
inputs: employees
660
>
function: FilterConcept
dependencies: 4
inputs: college
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 14