Question: How many sovereign states are there whose population is greater than 2.1?
Choices:
150
151
152
153
154
155
156
157
158
159
Answer: 154
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2.1"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
2.1
>
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Count
dependencies: 2