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