Question: What town is the twinned administrative body of a city whose official name was Вильна until 1918 ?
Choices:
Edinburgh
Wigan
Kettering
Valletta
South Shields
Worthing
Edmonton
Minsk
Erfurt
Madison
Answer: Valletta
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <official_name> ?pv . ?pv <pred:value> "Вильна" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <official_name> ; <pred:fact_t> ?pv ] <end_time> ?qpv . ?qpv <pred:year> 1918 .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
Вильна
function: QFilterYear
dependencies: 1
inputs: end time
1918
=
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: town
function: What
dependencies: 5