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