Question: What are the number of counties of Oregon with population less than 420000000 or that has the captital Salem (the one whose area is 127.220892 square kilometre) ?
Choices:
8
9
10
11
12
13
14
15
16
17
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
420000000
<
function: FilterConcept
dependencies: 1
inputs: county of Oregon
function: Find
inputs: Salem
function: FilterNum
dependencies: 3
inputs: area
127.220892 square kilometre
=
function: Relate
dependencies: 4
inputs: capital
backward
function: FilterConcept
dependencies: 5
inputs: county of Oregon
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Oregon" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "420000000"^^xsd:double ) .  } UNION { ?e <capital> ?e_1 . ?e_1 <pred:name> "Salem" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "127.220892"^^xsd:double .  } }
Answer: 14