Question: How many independent cities of Germany are also the historical country of Frankfurt (Oder) (the end time of this statement is 1918-11-09)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city of Germany" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "historical country" . ?e_3 <country> ?e_1 . ?e_3 <pred:name> "Frankfurt (Oder)" . [ <pred:fact_h> ?e_3 ; <pred:fact_r> <country> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1918-11-09"^^xsd:date .   }
Program:
function: Find
inputs: Frankfurt (Oder)
function: Relate
dependencies: 0
inputs: country
forward
function: QFilterDate
dependencies: 1
inputs: end time
1918-11-09
=
function: FilterConcept
dependencies: 2
inputs: historical country
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: independent city of Germany
function: Count
dependencies: 5
Answer: 4