Question: What former French region has the captital Montpellier?
Choices:
Languedoc-Roussillon
Aquitaine
Alsace
Lorraine
Lower Normandy
Poitou-Charentes
Upper Normandy
Champagne-Ardenne
Burgundy
Nord-Pas-de-Calais
Program:
function: Find
inputs: Montpellier
function: Relate
dependencies: 0
inputs: capital
backward
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 <capital> ?e_1 . ?e_1 <pred:name> "Montpellier" .   }
Answer: Languedoc-Roussillon