Question: How many comunes of Italy have a country which is a democracy equal to the narrative location of Nine (the one whose publication date is 2010-02-04)?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comune of Italy" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Nine" . ?e_2 <publication_date> ?pv . ?pv <pred:date> "2010-02-04"^^xsd:date .   }
Program:
function: Find
inputs: Nine
function: FilterDate
dependencies: 0
inputs: publication date
2010-02-04
=
function: Relate
dependencies: 1
inputs: narrative location
forward
function: FilterConcept
dependencies: 2
inputs: democracy
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: comune of Italy
function: Count
dependencies: 5