Question: Which has the higher elevation, Chihuahua at 1415 metres above sea level or Halifax (population 390096)?
Choices: Bergen
Santo Domingo
Dundee
Cairo
Abidjan
Trieste
Halifax
Kingston
Cork
Chihuahua
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chihuahua" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "1415"^^xsd:double . } UNION { ?e <pred:name> "Halifax" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "390096"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chihuahua
function: FilterNum
dependencies: 0
inputs: elevation above sea level
1415 metre
=
function: Find
inputs: Halifax
function: FilterNum
dependencies: 2
inputs: population
390096
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
Answer: Chihuahua