Question: How many Arizona counties have a population not 64000000 or border Santa Cruz County whose population is 47224?
Choices:
10
11
12
13
14
15
16
17
18
19
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 != "64000000"^^xsd:double ) .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Santa Cruz County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "47224"^^xsd:double .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
64000000
!=
function: FilterConcept
dependencies: 1
inputs: county of Arizona
function: Find
inputs: Santa Cruz County
function: FilterNum
dependencies: 3
inputs: population
47224
=
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: county of Arizona
function: Or
dependencies: 2
6
function: Count
dependencies: 7