Question: How many ethnic groups are either located in Central Java or have a population of less than 5.9?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Central Java
function: Relate
dependencies: 0
inputs: location
backward
function: FilterConcept
dependencies: 1
inputs: ethnic group
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
5.9
<
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" .  { ?e <location> ?e_1 . ?e_1 <pred:name> "Central Java" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "5.9"^^xsd:double ) .  } }
Answer: 1