Question: Which big city is next to Nuremberg (the one that is headed by mayor)?
Choices: Dnipro
Pasadena
Karlsruhe
Hildesheim
Utrecht
Halle (Saale)
Lyon
Boulogne-Billancourt
Makati
Erlangen
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Nuremberg" . ?e_1 <office_held_by_head_of_government> ?e_2 . ?e_2 <pred:name> "mayor" .   }
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Nuremberg
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: big city
function: What
dependencies: 5
Answer: Erlangen