Question: The population of males exceeds 5000 in how many Indian states?
Choices:
20
21
22
23
24
25
26
27
28
29
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: male population
5000
>
function: FilterConcept
dependencies: 1
inputs: state of India
function: Count
dependencies: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <male_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "5000"^^xsd:double ) .  }
Answer: 23