Question: Is there a greater elevation above sea level in Seoul or in San Marino (the one whose native label is Città di San Marino)?
Choices:
Santo Domingo
San Marino
Kilkenny
Kingston
Chihuahua
Seoul
Trieste
Bergen
Dundee
Abidjan
Answer: San Marino
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seoul" . } UNION { ?e <pred:name> "San Marino" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "Città di San Marino" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Seoul
function: Find
inputs: San Marino
function: FilterStr
dependencies: 1
inputs: native label
Città di San Marino
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater