Question: What department of France has the capital of Bordeaux?
Choices:
Haut-Rhin
Vaucluse
Aquitaine
Bas-Rhin
Nord
Manche
Seine-et-Marne
Haute-Savoie
Gironde
Calvados
Program:
function: Find
inputs: Bordeaux
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: departments of France
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "departments of France" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Bordeaux" .   }
Answer: Gironde