Question: Which area is smaller, Nagasaki or Kathmandu?
Choices:
Santo Domingo
Cork
Kingston
Bergen
Kathmandu
Chihuahua
Nagasaki
Dundee
Trieste
Kilkenny
Program:
function: Find
inputs: Nagasaki
function: Find
inputs: Kathmandu
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nagasaki" .  } UNION { ?e <pred:name> "Kathmandu" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kathmandu