Question: Which French region shares a border with Lower Normandy?
Choices:
Upper Normandy
Joe Walsh
Nigeria
Martinique
Normandy
The Little Mermaid
Marg Helgenberger
Brittany
Boeing 737
Corsica
Program:
function: Find
inputs: Lower Normandy
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: region of France
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of France" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Lower Normandy" .   }
Answer: Brittany