Question: How many authors are a citizen of the democracy that contains Venice (whose official website is http://www.comune.venezia.it/) (this statement's ending date is in 1797)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "author" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Venice" . ?e_2 <official_website> ?pv . ?pv <pred:value> "http://www.comune.venezia.it/" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:year> 1797 .   }
Program:
function: Find
inputs: Venice
function: FilterStr
dependencies: 0
inputs: official website
http://www.comune.venezia.it/
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: QFilterYear
dependencies: 2
inputs: end time
1797
=
function: FilterConcept
dependencies: 3
inputs: democracy
function: Relate
dependencies: 4
inputs: country of citizenship
backward
function: FilterConcept
dependencies: 5
inputs: author
function: Count
dependencies: 6