Question: How many democracies do we know that contain the administrative division Emilia-Romagna or that share a border with Kenya?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" .  { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Emilia-Romagna" .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Kenya" .  } }
Program:
function: Find
inputs: Emilia-Romagna
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: democracy
function: Find
inputs: Kenya
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: democracy
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 5