Question: What city shares a border with London (that shares a boundary with Kitchener)?
Choices: Cork
Abidjan
Kitchener
Kingston
Trondheim
Trieste
Saginaw
Kilkenny
Bergen
Groningen
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "London" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Kitchener" .   }
Program:
function: Find
inputs: Kitchener
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
Answer: Kitchener