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