Question: Which has higher elevation above sea level, Dresden (the one whose postal code is 01129) or Trieste?
Choices:
Kingston
Cairo
Chihuahua
Dundee
Dresden
Trieste
Cork
Bergen
Santo Domingo
Abidjan
Program:
function: Find
inputs: Dresden
function: FilterStr
dependencies: 0
inputs: postal code
01129
function: Find
inputs: Trieste
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dresden" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "01129" . } UNION { ?e <pred:name> "Trieste" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dresden