Question: What city was named after the person that lived in Baku until 1956-10-20?
Choices:
Varna
Santo Domingo
Trieste
Kingston
Bergen
Chihuahua
Cork
Katowice
Abidjan
Dundee
Program:
function: Find
inputs: Baku
function: Relate
dependencies: 0
inputs: residence
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: named after
backward
function: QFilterDate
dependencies: 3
inputs: end time
1956-10-20
=
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <named_after> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <residence> ?e_2 . ?e_2 <pred:name> "Baku" .  [ <pred:fact_h> ?e ; <pred:fact_r> <named_after> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1956-10-20"^^xsd:date .  }
Answer: Varna