Question: Which has less elevation above sea level, Birmingham whose population is 1137100 or Bangkok?
Choices:
Santo Domingo
Dundee
Kingston
Bergen
Bangkok
Chihuahua
Kilkenny
Trieste
Cork
Abidjan
Answer: Bangkok
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Birmingham" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1137100"^^xsd:double . } UNION { ?e <pred:name> "Bangkok" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Birmingham
function: FilterNum
dependencies: 0
inputs: population
1137100
=
function: Find
inputs: Bangkok
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less