Question: Is there a greater area in Alpes-Maritimes (the one that shares border with Liguria) or Haut-Rhin?
Choices:
Gironde
Haute-Savoie
Manche
Alpes-Maritimes
Vaucluse
Calvados
Bas-Rhin
Nord
Haut-Rhin
Somme
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: Haut-Rhin
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> "Haut-Rhin" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alpes-Maritimes