Question: Which area has a bigger population, Kochi or Lima (the one that is the twinned administrative body of Cleveland)?
Choices:
Bergen
Abidjan
Trieste
Chihuahua
Santo Domingo
Kochi
Dundee
Kingston
Cork
Lima
Program:
function: Find
inputs: Kochi
function: Find
inputs: Cleveland
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Lima
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kochi" .  } UNION { ?e <pred:name> "Lima" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Cleveland" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lima