Question: Which is located at a higher elevation above sea level, Bradford which has an official name of Bradford, or Genoa?
Choices:
Santo Domingo
Kingston
Genoa
Abidjan
Bergen
Trieste
Kilkenny
Chihuahua
Bradford
Cork
Program:
function: Find
inputs: Genoa
function: Find
inputs: Bradford
function: FilterStr
dependencies: 1
inputs: official name
Bradford
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Genoa" . } UNION { ?e <pred:name> "Bradford" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Bradford" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Genoa