Question: In what location is where the Iberian Peninsula connected to the Pyrenees?
Choices:
west-northwest
north
northwest
south-southeast
north-northwest
east
south
southwest
northeast
consolidated city-county
Answer: northeast
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Iberian Peninsula" . ?e_2 <pred:name> "Pyrenees" . ?e_1 <connects_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <connects_with> ; <pred:fact_t> ?e_2 ] <direction_relative_to_location> ?qpv .  }
Program:
function: Find
inputs: Iberian Peninsula
function: Find
inputs: Pyrenees
function: QueryRelationQualifier
dependencies: 0
1
inputs: connects with
direction relative to location