Question: Which one, Basilicata or Umbria, has a larger population?
Choices:
Sicily
Sardinia
Lazio
Piedmont
Umbria
Apulia
Basilicata
Abruzzo
Lombardy
Tuscany
Program:
function: Find
inputs: Basilicata
function: Find
inputs: Umbria
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Basilicata" .  } UNION { ?e <pred:name> "Umbria" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Umbria