Question: How many states of India have a female population count higher than 1,900,000?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <female_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1900000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: female population
1900000
>
function: FilterConcept
dependencies: 1
inputs: state of India
function: Count
dependencies: 2