Question: How many Washington counties border Jefferson County whose area is 5655 square kilometers or whose population is not 2400?
Choices:
11
12
13
14
15
16
17
18
19
20
Program:
function: Find
inputs: Jefferson County
function: FilterNum
dependencies: 0
inputs: area
5655 square kilometre
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Washington
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
2400
!=
function: FilterConcept
dependencies: 5
inputs: county of Washington
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 Washington" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Jefferson County" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "5655"^^xsd:double .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "2400"^^xsd:double ) .  } }
Answer: 16