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