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