Question: How many democracies have the demonym of סרי לנקית or the narrative location of For Your Eyes Only (the one whose narrative location is Spain)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
סרי לנקית
function: FilterConcept
dependencies: 1
inputs: democracy
function: Find
inputs: Spain
function: Relate
dependencies: 3
inputs: narrative location
backward
function: Find
inputs: For Your Eyes Only
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: narrative location
forward
function: FilterConcept
dependencies: 7
inputs: democracy
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "democracy" .  { ?e <demonym> ?pv . ?pv <pred:value> "סרי לנקית" .  } UNION { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "For Your Eyes Only" . ?e_1 <narrative_location> ?e_2 . ?e_2 <pred:name> "Spain" .  } }
Answer: 2