Question: How many Arizona counties contain Cambridge (the one whose population is 39634), or have a population that is greater than 140000?
Choices:
4
5
6
7
8
9
10
11
12
13
Program:
function: Find
inputs: Cambridge
function: FilterNum
dependencies: 0
inputs: population
39634
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: county of Arizona
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
140000
>
function: FilterConcept
dependencies: 5
inputs: county of Arizona
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" .  { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Cambridge" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "39634"^^xsd:double .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "140000"^^xsd:double ) .  } }
Answer: 5