Question: For the city that is the twinned administrative body of Harlow (the one that shares a border with Chelmsford), what big city is its twinned administrative body?
Choices:
Halle (Saale)
Harlow
Varna
Toulouse
Nantes
Wuppertal
Darmstadt
Aberdeen
Galveston
Freiburg im Breisgau
Answer: Toulouse
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Harlow" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Chelmsford" .   }
Program:
function: Find
inputs: Chelmsford
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Harlow
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: city
function: Relate
dependencies: 5
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 6
inputs: big city
function: What
dependencies: 7