Question: Which is at a lower elevation above sea level, Windsor which has a postal code of N9H, or Port Elizabeth?
Choices:
Chihuahua
Bergen
Kingston
Abidjan
Windsor
Port Elizabeth
Cork
Dundee
Santo Domingo
Trieste
Program:
function: Find
inputs: Port Elizabeth
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> "Port Elizabeth" . } 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: Port Elizabeth