Question: Which area is smaller, Trentino or Province of Palermo?
Choices:
Province of Naples
Trentino
Province of Potenza
Province of Como
Province of Cuneo
Province of Cagliari
Province of Salerno
province of Milan
Province of Turin
Province of Palermo
Program:
function: Find
inputs: Trentino
function: Find
inputs: Province of Palermo
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Trentino" .  } UNION { ?e <pred:name> "Province of Palermo" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Province of Palermo