Question: What is the number of states with a population of more than 8.7?
Choices:
22
23
24
25
26
27
28
29
30
31
Answer: 29
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "8.7"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
8.7
>
function: FilterConcept
dependencies: 1
inputs: state
function: Count
dependencies: 2