Question: Which has lower elevation above sea level, Barcelona (the one whose population is 1605602) or Odessa (the one that is the twinned administrative body of Jeddah)?
Choices:
İzmir
Tianjin
Odessa
Busan
Alexandria
Gloria Estefan
Barcelona
Fremantle
Basra
Gibraltar
Program:
function: Find
inputs: Barcelona
function: FilterNum
dependencies: 0
inputs: population
1605602
=
function: Find
inputs: Jeddah
function: Relate
dependencies: 2
inputs: twinned administrative body
forward
function: Find
inputs: Odessa
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barcelona" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1605602"^^xsd:double . } UNION { ?e <pred:name> "Odessa" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Jeddah" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barcelona