Question: How many United States towns are an administrative division of Antwerp (which shares a border with North Brabant) or have an above sea level elevation greater than 230 metres?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: North Brabant
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Antwerp
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: town of the United States
function: FindAll
function: FilterNum
dependencies: 6
inputs: elevation above sea level
230 metre
>
function: FilterConcept
dependencies: 7
inputs: town of the United States
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Antwerp" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "North Brabant" .  } UNION { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v > "230"^^xsd:double ) .  } }
Answer: 2