Question: Which area has lower elevation above sea level, Busan or Alexandria (the one whose population is 4532174)?
Choices:
Alexandria
Basra
Tianjin
Barcelona
Gibraltar
Odessa
İzmir
Fremantle
Joan Collins
Busan
Program:
function: Find
inputs: Busan
function: Find
inputs: Alexandria
function: FilterNum
dependencies: 1
inputs: population
4532174
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Busan" . } UNION { ?e <pred:name> "Alexandria" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4532174"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alexandria