Question: Which city belonged to the Second Polish Republic until 1939?
Choices:
Trieste
Abidjan
Santo Domingo
Bergen
Vilnius
Cork
Chihuahua
Kingston
Bratislava
Warsaw
Program:
function: Find
inputs: Second Polish Republic
function: Relate
dependencies: 0
inputs: country
backward
function: QFilterYear
dependencies: 1
inputs: end time
1939
=
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> "Second Polish Republic" .  [ <pred:fact_h> ?e ; <pred:fact_r> <country> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:year> 1939 .  }
Answer: Warsaw