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