Question: How many states in India are an administrative division of India (that is the country of Telugu) or have a rural population that is under 36000000?
Choices:
19
20
21
22
23
24
25
26
27
28
Answer: 23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "India" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Telugu" .  } UNION { ?e <rural_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "36000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Telugu
function: Relate
dependencies: 0
inputs: country
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: state of India
function: FindAll
function: FilterNum
dependencies: 6
inputs: rural population
36000000
<
function: FilterConcept
dependencies: 7
inputs: state of India
function: Or
dependencies: 5
8
function: Count
dependencies: 9