Question: Is Sicily a less populous city than Liguria or is Liguria a less populous city than Sicily?
Choices:
Basilicata
Liguria
Tuscany
Lazio
Sicily
Lombardy
Piedmont
Sardinia
Apulia
Abruzzo
Program:
function: Find
inputs: Sicily
function: Find
inputs: Liguria
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sicily" .  } UNION { ?e <pred:name> "Liguria" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Liguria