Question: What part of Spain has the Iberian Peninsula on it?
Choices:
fictional character
Quebec
physics
Faculty staff
Mayotte
8th arrondissement of Paris
7th arrondissement of Lyon
peninsular Spain
woman
NBC Sports
Answer: peninsular Spain
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spain" . ?e_2 <pred:name> "Iberian Peninsula" . ?e_1 <located_on_terrain_feature> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <located_on_terrain_feature> ; <pred:fact_t> ?e_2 ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Spain
function: Find
inputs: Iberian Peninsula
function: QueryRelationQualifier
dependencies: 0
1
inputs: located on terrain feature
applies to part