Question: Which area is larger, Alpes-Maritimes (the one that shares border with Liguria) or Calvados?
Choices:
Bas-Rhin
Calvados
Manche
Vaucluse
Aisne
Seine-et-Marne
Somme
Gironde
Nord
Haute-Savoie
Program:
function: Find
inputs: Liguria
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Alpes-Maritimes
function: And
dependencies: 1
2
function: Find
inputs: Calvados
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alpes-Maritimes" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Liguria" .   } UNION { ?e <pred:name> "Calvados" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Calvados