Question: How many Germany states share a border with Saxony-Anhalt (whose elevation (above sea level) is 51 metres)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Saxony-Anhalt" . ?e_1 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "51"^^xsd:double .   }
Program:
function: Find
inputs: Saxony-Anhalt
function: FilterNum
dependencies: 0
inputs: elevation above sea level
51 metre
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: state of Germany
function: Count
dependencies: 3