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