Question: Between two locations—Shiraz (dial code 071) or Shimla—which has the higher above-sea-level elevation?
Choices:
Shimla
Cork
Bergen
Shiraz
Trieste
Kilkenny
Chihuahua
Dundee
Abidjan
Kingston
Answer: Shimla
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shiraz" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "071" . } UNION { ?e <pred:name> "Shimla" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shiraz
function: FilterStr
dependencies: 0
inputs: local dialing code
071
function: Find
inputs: Shimla
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater