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