Question: Which area is larger, Suva or Tripoli (the one whose country is Libya)?
Choices:
Cork
Suva
Abidjan
Bergen
Kingston
Santo Domingo
Dundee
Trieste
Tripoli
Chihuahua
Program:
function: Find
inputs: Suva
function: Find
inputs: Libya
function: Relate
dependencies: 1
inputs: country
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> "Suva" .  } UNION { ?e <pred:name> "Tripoli" . ?e <country> ?e_1 . ?e_1 <pred:name> "Libya" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Suva