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