Question: How many states of India are a part of Paraguay or have a population count not equal to 49,000,000?
Choices: 22
23
24
25
26
27
28
29
30
31
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" .  { ?e <part_of> ?e_1 . ?e_1 <pred:name> "Paraguay" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "49000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Paraguay
function: Relate
dependencies: 0
inputs: part of
backward
function: FilterConcept
dependencies: 1
inputs: state of India
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
49000000
!=
function: FilterConcept
dependencies: 4
inputs: state of India
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 23