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