Question: How many languages have ISO 639-5 code jpx or whose number of speakers is less than 1.3 percent?
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> "language" .  { ?e <ISO_639-5_code> ?pv . ?pv <pred:value> "jpx" .  } UNION { ?e <number_of_speakers> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> ?v . FILTER ( ?v < "1.3"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 639-5 code
jpx
function: FilterConcept
dependencies: 1
inputs: language
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of speakers
1.3 percentage
<
function: FilterConcept
dependencies: 4
inputs: language
function: Or
dependencies: 2
5
function: Count
dependencies: 6