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