Question: Out of two locations—Leeds, which is Louisville's twinned administrative body, or Mysore—which population of which location is the largest?
Choices:
Kilkenny
Trieste
Dundee
Santo Domingo
Bergen
Leeds
Abidjan
Kingston
Cork
Mysore
Answer: Mysore
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mysore" .  } UNION { ?e <pred:name> "Leeds" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Louisville" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mysore
function: Find
inputs: Louisville
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Leeds
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater