Question: Which has higher elevation above sea level, Dessau or Gotha (the one whose population is 45410)?
Choices:
Swiss national football team
Gotha
Ipswich Town F.C.
West Hollywood
The Lord of the Rings: The Return of the King
Santa Monica
Grammy Lifetime Achievement Award
Elizabeth Banks
Dessau
Rockingham County
Answer: Gotha
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dessau" . } UNION { ?e <pred:name> "Gotha" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "45410"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dessau
function: Find
inputs: Gotha
function: FilterNum
dependencies: 1
inputs: population
45410
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater