Question: How many India states use Bengali as the official language or whose female population is less than 830000?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: Bengali
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: state of India
function: FindAll
function: FilterNum
dependencies: 3
inputs: female population
830000
<
function: FilterConcept
dependencies: 4
inputs: state of India
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" .  { ?e <official_language> ?e_1 . ?e_1 <pred:name> "Bengali" .  } UNION { ?e <female_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "830000"^^xsd:double ) .  } }
Answer: 4