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