Question: Which one, province of Milan or Province of Rome, has greater area?
Choices:
Province of Palermo
Province of Brescia
Province of Salerno
Province of Naples
province of Milan
Province of Cagliari
Province of Rome
Province of Cuneo
Province of Potenza
Province of Como
Program:
function: Find
inputs: province of Milan
function: Find
inputs: Province of Rome
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "province of Milan" .  } UNION { ?e <pred:name> "Province of Rome" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Province of Rome