Question: Does Peterborough whose official website is http://www.peterborough.ca/) or Aleppo have less elevation above sea level?
Choices:
Aleppo
Trieste
Dundee
Santo Domingo
Bergen
Cork
Abidjan
Kilkenny
Kingston
Peterborough
Program:
function: Find
inputs: Peterborough
function: FilterStr
dependencies: 0
inputs: official website
http://www.peterborough.ca/
function: Find
inputs: Aleppo
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peterborough" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.peterborough.ca/" . } UNION { ?e <pred:name> "Aleppo" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Peterborough