Question: Which area is smaller, Abruzzo or Piedmont (the one that shares border with Lombardy)?
Choices: Veneto
Lazio
Abruzzo
Sicily
Piedmont
Apulia
Lombardy
Friuli–Venezia Giulia
Sardinia
Tuscany
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Abruzzo" .  } UNION { ?e <pred:name> "Piedmont" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lombardy" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Abruzzo
function: Find
inputs: Lombardy
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Piedmont
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
Answer: Abruzzo