Question: Does İzmir or Gibraltar (the one that is a part of Iberian Peninsula) have a larger population?
Choices:
Alexandria
Tianjin
Gibraltar
Basra
Fremantle
Odessa
İzmir
Guelph
Barcelona
Busan
Program:
function: Find
inputs: İzmir
function: Find
inputs: Iberian Peninsula
function: Relate
dependencies: 1
inputs: has part
forward
function: Find
inputs: Gibraltar
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "İzmir" .  } UNION { ?e <pred:name> "Gibraltar" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Iberian Peninsula" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: İzmir