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