Question: Does Aude, an administrative division of Languedoc-Roussillon, or Calvados boast the higher yearly rate of weddings?
Choices:
Nord
Somme
Alpes-Maritimes
Gironde
Calvados
Bas-Rhin
Manche
Vaucluse
Aude
Seine-et-Marne
Program:
function: Find
inputs: Languedoc-Roussillon
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Aude
function: And
dependencies: 1
2
function: Find
inputs: Calvados
function: SelectBetween
dependencies: 3
4
inputs: annual number of weddings
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aude" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Languedoc-Roussillon" .   } UNION { ?e <pred:name> "Calvados" .  } ?e <annual_number_of_weddings> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Calvados