Question: How many democracies are the birthplace of Michael Bell (who is in African Americans ethnic group) or partially contains Danube?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Michael Bell" . ?e_1 <ethnic_group> ?e_2 . ?e_2 <pred:name> "African Americans" .  } UNION { ?e <partially_contains> ?e_1 . ?e_1 <pred:name> "Danube" .  } }
Program:
function: Find
inputs: African Americans
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: Find
inputs: Michael Bell
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: democracy
function: Find
inputs: Danube
function: Relate
dependencies: 6
inputs: partially contains
backward
function: FilterConcept
dependencies: 7
inputs: democracy
function: Or
dependencies: 5
8
function: Count
dependencies: 9