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