Question: Which has lower elevation above sea level, Rawalpindi or Windsor (the one whose postal code is N9H)?
Choices:
Rawalpindi
Kilkenny
Santo Domingo
Abidjan
Windsor
Kingston
Cork
Trieste
Bergen
Chihuahua
Program:
function: Find
inputs: Rawalpindi
function: Find
inputs: Windsor
function: FilterStr
dependencies: 1
inputs: postal code
N9H
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rawalpindi" . } UNION { ?e <pred:name> "Windsor" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "N9H" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Windsor