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