Question: Which one has fewer people living there, Cape Town or Beirut (the twinned administrative body of Montreal) ?
Choices: Cape Town
Manila
Mexico City
Beirut
New Delhi
Lausanne
Riga
Sarajevo
Tallinn
Doha
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cape Town" .  } UNION { ?e <pred:name> "Beirut" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Montreal" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cape Town
function: Find
inputs: Montreal
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Beirut
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
Answer: Beirut