Question: How many administrative-territorial entities there with an area more than 2000 square kilometers or with a population different to 590000000?
Choices:
179
180
181
182
183
184
185
186
187
188
Answer: 181
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" .  { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v > "2000"^^xsd:double ) .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "590000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
2000 square kilometre
>
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
590000000
!=
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: Or
dependencies: 2
5
function: Count
dependencies: 6