Question: Which former French region borders Burgundy ?
Choices:
Lower Normandy
Lorraine
Poitou-Charentes
Aquitaine
Upper Normandy
Alsace
Champagne-Ardenne
Picardy
Nord-Pas-de-Calais
Languedoc-Roussillon
Program:
function: Find
inputs: Burgundy
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: former French region
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Burgundy" .   }
Answer: Champagne-Ardenne