Question: Which has higher elevation, Kilkenny or Plovdiv?
Choices:
Plovdiv
Cork
Kingston
Trieste
Bergen
Chihuahua
Abidjan
Santo Domingo
Cairo
Kilkenny
Program:
function: Find
inputs: Kilkenny
function: Find
inputs: Plovdiv
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kilkenny" .  } UNION { ?e <pred:name> "Plovdiv" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Plovdiv