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