Question: How many ethnic groups have under 7.9 members or are designated by Iconclass notation 32B342?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "7.9"^^xsd:double ) .  } UNION { ?e <Iconclass_notation> ?pv . ?pv <pred:value> "32B342" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
7.9
<
function: FilterConcept
dependencies: 1
inputs: ethnic group
function: FindAll
function: FilterStr
dependencies: 3
inputs: Iconclass notation
32B342
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Or
dependencies: 2
5
function: Count
dependencies: 6