Question: Which area has lower elevation above sea level, Peterborough (the one whose official website is http://www.peterborough.ca/) or Sofia?
Choices:
Abidjan
Santo Domingo
Kilkenny
Dundee
Trieste
Kingston
Cork
Sofia
Peterborough
Bergen
Program:
function: Find
inputs: Peterborough
function: FilterStr
dependencies: 0
inputs: official website
http://www.peterborough.ca/
function: Find
inputs: Sofia
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> "Sofia" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Peterborough