Question: What is the number of neighborhoods with a population of under 77000000 or that have a population of over 9000000
Choices:
8
9
10
11
12
13
14
15
16
17
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
77000000
<
function: FilterConcept
dependencies: 1
inputs: neighborhood
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
9000000
>
function: FilterConcept
dependencies: 4
inputs: neighborhood
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "neighborhood" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "77000000"^^xsd:double ) .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "9000000"^^xsd:double ) .  } }
Answer: 10