Question: How many New York cities have elevations over -30 metres and have the local dialing code 516?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of New York" . ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v > "-30"^^xsd:double ) . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "516" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: elevation above sea level
-30 metre
>
function: FilterConcept
dependencies: 1
inputs: city of New York
function: FindAll
function: FilterStr
dependencies: 3
inputs: local dialing code
516
function: FilterConcept
dependencies: 4
inputs: city of New York
function: And
dependencies: 2
5
function: Count
dependencies: 6