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