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