Question: What is the name of the city founded before 1525, and that became in 1979 the twinned administrative body of Frankfurt?
Choices:
Bergen
Abidjan
Chihuahua
Shanghai
Kilkenny
Santo Domingo
Tbilisi
Trieste
Kingston
Cairo
Answer: Cairo
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Frankfurt" .  [ <pred:fact_h> ?e ; <pred:fact_r> <twinned_administrative_body> ; <pred:fact_t> ?e_1 ] <start_time> ?qpv . ?qpv <pred:year> 1979 . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1525 ) .  }
Program:
function: Find
inputs: Frankfurt
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: QFilterYear
dependencies: 1
inputs: start time
1979
=
function: FilterConcept
dependencies: 2
inputs: city
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1525
<
function: FilterConcept
dependencies: 5
inputs: city
function: And
dependencies: 3
6
function: What
dependencies: 7