Question: What is the number of US cities that have a population of over 86000
Choices:
228
229
230
231
232
233
234
235
236
237
Answer: 236
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "86000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
86000
>
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Count
dependencies: 2