Question: Between Nuremberg, at zip codes 90402–90491, or Barrie -- which is higher relative to sea level?
Choices:
Santo Domingo
Kilkenny
Chihuahua
Dundee
Abidjan
Bergen
Cork
Trieste
Barrie
Kingston
Answer: Barrie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nuremberg" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "90402–90491" . } UNION { ?e <pred:name> "Barrie" . } ?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: postal code
90402–90491
function: Find
inputs: Barrie
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater