Question: I want to know the one with the larger population, Picardy or Upper Normandy.
Choices:
Nord-Pas-de-Calais
Picardy
Champagne-Ardenne
Aquitaine
Upper Normandy
Alsace
Poitou-Charentes
Languedoc-Roussillon
Burgundy
Lorraine
Program:
function: Find
inputs: Picardy
function: Find
inputs: Upper Normandy
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Picardy" .  } UNION { ?e <pred:name> "Upper Normandy" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Picardy