Question: How many human settlements are the capital of County Wexford or have an elevation above sea level less than 5800 feet?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" .  { ?e_1 <capital> ?e . ?e_1 <pred:name> "County Wexford" .  } UNION { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "foot" . ?pv <pred:value> ?v . FILTER ( ?v < "5800"^^xsd:double ) .  } }
Program:
function: Find
inputs: County Wexford
function: Relate
dependencies: 0
inputs: capital
forward
function: FilterConcept
dependencies: 1
inputs: human settlement
function: FindAll
function: FilterNum
dependencies: 3
inputs: elevation above sea level
5800 foot
<
function: FilterConcept
dependencies: 4
inputs: human settlement
function: Or
dependencies: 2
5
function: Count
dependencies: 6