Question: Which has lower elevation above sea level, Barcelona (the one whose nickname is La rosa de foc) or İzmir?
Choices:
Basra
Fremantle
Busan
Alexandria
İzmir
Gibraltar
Barcelona
Odessa
ethanol
Tianjin
Program:
function: Find
inputs: Barcelona
function: FilterStr
dependencies: 0
inputs: nickname
La rosa de foc
function: Find
inputs: İzmir
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barcelona" . ?e <nickname> ?pv_1 . ?pv_1 <pred:value> "La rosa de foc" . } UNION { ?e <pred:name> "İzmir" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: İzmir