Question: What city's country is the Kingdom of Prussia until the ending date 1918-11-09?
Choices:
Potsdam
Kingston
Bonn
Hanover
Trieste
Szczecin
Trier
Dresden
Cologne
Frankfurt
Program:
function: Find
inputs: Kingdom of Prussia
function: Relate
dependencies: 0
inputs: country
backward
function: QFilterDate
dependencies: 1
inputs: end time
1918-11-09
=
function: FilterConcept
dependencies: 2
inputs: city
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <country> ?e_1 . ?e_1 <pred:name> "Kingdom of Prussia" .  [ <pred:fact_h> ?e ; <pred:fact_r> <country> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1918-11-09"^^xsd:date .  }
Answer: Szczecin