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