Question: How many ethnic groups are located in Java which contains Jakarta or whose geographic distruibution is Bahrain?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Jakarta
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Java
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Find
inputs: Bahrain
function: Relate
dependencies: 6
inputs: geographic distribution
backward
function: FilterConcept
dependencies: 7
inputs: ethnic group
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Java" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Jakarta" .  } UNION { ?e <geographic_distribution> ?e_1 . ?e_1 <pred:name> "Bahrain" .  } }
Answer: 2