Question: How many ethnic communities have the native label Cubanoamericanos or have 7400 members?
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 community" .  { ?e <native_label> ?pv . ?pv <pred:value> "Cubanoamericanos" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "7400"^^xsd:double .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Cubanoamericanos
function: FilterConcept
dependencies: 1
inputs: ethnic community
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
7400
=
function: FilterConcept
dependencies: 4
inputs: ethnic community
function: Or
dependencies: 2
5
function: Count
dependencies: 6