Question: Which city is an administrative division of Bremen (in the country of Nazi Germany) and is the twinned administrative body of Yokohama?
Choices:
Mumbai
Kingston
Abidjan
Bremen
Frankfurt
Cork
Kilkenny
Bergen
Santo Domingo
Trieste
Program:
function: Find
inputs: Nazi Germany
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Bremen
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: city
function: Find
inputs: Yokohama
function: Relate
dependencies: 6
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 7
inputs: city
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Bremen" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Nazi Germany" .  ?e_3 <twinned_administrative_body> ?e . ?e_3 <pred:name> "Yokohama" .  }
Answer: Bremen