Question: How many states of India either had Spanish or a rural population that was not equal to 1900000?
Choices: 17
18
19
20
21
22
23
24
25
26
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" .  { ?e_1 <indigenous_to> ?e . ?e_1 <pred:name> "Spanish" .  } UNION { ?e <rural_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "1900000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Spanish
function: Relate
dependencies: 0
inputs: indigenous to
forward
function: FilterConcept
dependencies: 1
inputs: state of India
function: FindAll
function: FilterNum
dependencies: 3
inputs: rural population
1900000
!=
function: FilterConcept
dependencies: 4
inputs: state of India
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 23