Question: Who has more people, Odessa (the one that is the twinned administrative body of Marseille) or Tianjin?
Choices:
Busan
Odessa
Seoul
Barcelona
Tianjin
Alexandria
Fremantle
Gibraltar
Basra
İzmir
Program:
function: Find
inputs: Marseille
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Odessa
function: And
dependencies: 1
2
function: Find
inputs: Tianjin
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Odessa" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Marseille" .   } UNION { ?e <pred:name> "Tianjin" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tianjin