Question: How many landforms exist with an area greater than 90000000 square meters or with a population less than 43000000?
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 25
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" .  { ?e <area> ?pv . ?pv <pred:unit> "square metre" . ?pv <pred:value> ?v . FILTER ( ?v > "90000000"^^xsd:double ) .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "43000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
90000000 square metre
>
function: FilterConcept
dependencies: 1
inputs: landform
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
43000000
<
function: FilterConcept
dependencies: 4
inputs: landform
function: Or
dependencies: 2
5
function: Count
dependencies: 6