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