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