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