Question: How many Washington counties border Columbia County whose population is 49351 or have the capital Port Arthur?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Columbia County
function: FilterNum
dependencies: 0
inputs: population
49351
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Washington
function: Find
inputs: Port Arthur
function: Relate
dependencies: 4
inputs: capital
backward
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> "Columbia County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "49351"^^xsd:double .  } UNION { ?e <capital> ?e_1 . ?e_1 <pred:name> "Port Arthur" .  } }
Answer: 1