Question: Which has the smallest elevation above sea level among the regions of Italy that border Apulia?
Choices:
Basilicata
Lombardy
Veneto
Sicily
Abruzzo
Piedmont
Lazio
Apulia
Campania
Sardinia
Program:
function: Find
inputs: Apulia
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: region of Italy
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Apulia" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Campania