Question: Which has less population, Campania or Umbria?
Choices:
Campania
Apulia
Veneto
Piedmont
Lombardy
Umbria
Sicily
Tuscany
Sardinia
Abruzzo
Program:
function: Find
inputs: Campania
function: Find
inputs: Umbria
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Campania" .  } UNION { ?e <pred:name> "Umbria" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Umbria