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