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