Question: How man US towns border Independence  (the one whose postal code is 93526)  or covers the area over 2200000 square feet ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Independence" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "93526" .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square foot" . ?pv <pred:value> ?v . FILTER ( ?v > "2200000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Independence
function: FilterStr
dependencies: 0
inputs: postal code
93526
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: town of the United States
function: FindAll
function: FilterNum
dependencies: 4
inputs: area
2200000 square foot
>
function: FilterConcept
dependencies: 5
inputs: town of the United States
function: Or
dependencies: 3
6
function: Count
dependencies: 7