Question: Which area is larger, Yerevan or Lisbon (the one that is the twinned administrative body of Santo Domingo)?
Choices:
Riga
Mexico City
Yerevan
Moscow
New Delhi
Sarajevo
Doha
Lisbon
Lausanne
Manila
Answer: Yerevan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Yerevan" .  } UNION { ?e <pred:name> "Lisbon" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Santo Domingo" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Yerevan
function: Find
inputs: Santo Domingo
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Lisbon
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater