Question: How many counties of Alabama share a border with Washington County (whose population is 17581) and do not have a population of 2900000?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Washington County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "17581"^^xsd:double .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v != "2900000"^^xsd:double ) .  }
Program:
function: Find
inputs: Washington County
function: FilterNum
dependencies: 0
inputs: population
17581
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
2900000
!=
function: FilterConcept
dependencies: 5
inputs: county of Alabama
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2