Question: Which location is related to Brittany with INSEE region code 53 that shares border with Lower Normandy?
Choices: consolidated city-county
west-northwest
east
south-southwest
south-southeast
south
northeast
west
southwest
northwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Brittany" . ?e_1 <INSEE_region_code> ?pv . ?pv <pred:value> "53" . ?e_2 <pred:name> "Lower Normandy" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <direction_relative_to_location> ?qpv .  }
Program:
function: Find
inputs: Brittany
function: FilterStr
dependencies: 0
inputs: INSEE region code
53
function: Find
inputs: Lower Normandy
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location
Answer: northeast