Question: Is the larger area occupied by Seville or by Tripoli,  capital of Libya?
Choices:
Seville
Kilkenny
Bergen
Abidjan
Trieste
Kingston
Chihuahua
Dundee
Tripoli
Santo Domingo
Program:
function: Find
inputs: Seville
function: Find
inputs: Libya
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Tripoli
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seville" .  } UNION { ?e <pred:name> "Tripoli" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Libya" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tripoli