Question: Does Birmingham (TOID 4000000074540884) or Baghdad have the lower elevation relative to sea level?
Choices: Kingston
Chihuahua
Baghdad
Trieste
Kilkenny
Birmingham
Dundee
Bergen
Abidjan
Santo Domingo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Birmingham" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074540884" . } UNION { ?e <pred:name> "Baghdad" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Birmingham
function: FilterStr
dependencies: 0
inputs: TOID
4000000074540884
function: Find
inputs: Baghdad
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
Answer: Baghdad