Question: The Republic of Venice was the country that which city belonged to until 1529?
Choices:
Trieste
Bergen
Kilkenny
Venice
Ravenna
Cork
Kingston
Thessaloniki
Abidjan
Santo Domingo
Answer: Ravenna
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <country> ?e_1 . ?e_1 <pred:name> "Republic of Venice" .  [ <pred:fact_h> ?e ; <pred:fact_r> <country> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:year> 1529 .  }
Program:
function: Find
inputs: Republic of Venice
function: Relate
dependencies: 0
inputs: country
backward
function: QFilterYear
dependencies: 1
inputs: end time
1529
=
function: FilterConcept
dependencies: 2
inputs: city
function: What
dependencies: 3