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