Question: Which area is larger, Mosul or Montevideo?
Choices:
Kingston
Montevideo
Bergen
Dundee
Santo Domingo
Chihuahua
Trieste
Cork
Mosul
Kilkenny
Program:
function: Find
inputs: Mosul
function: Find
inputs: Montevideo
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mosul" .  } UNION { ?e <pred:name> "Montevideo" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Montevideo