Question: Does Nuremberg -- officially named Nürnberg -- or Thrissur have the higher elevation?
Choices:
Kingston
Santo Domingo
Nuremberg
Chihuahua
Bergen
Cork
Thrissur
Dundee
Trieste
Abidjan
Answer: Nuremberg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nuremberg" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Nürnberg" . } UNION { ?e <pred:name> "Thrissur" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nuremberg
function: FilterStr
dependencies: 0
inputs: official name
Nürnberg
function: Find
inputs: Thrissur
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater