Question: How many Oregon counties share a border with Douglas County (whose population is 107651) or have a population of 1900?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Oregon" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Douglas County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "107651"^^xsd:double .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1900"^^xsd:double .  } }
Program:
function: Find
inputs: Douglas County
function: FilterNum
dependencies: 0
inputs: population
107651
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county of Oregon
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
1900
=
function: FilterConcept
dependencies: 5
inputs: county of Oregon
function: Or
dependencies: 3
6
function: Count
dependencies: 7