Question: Which city has less land area, Jakarta or Carlisle (the capital of Cumbria)?
Choices:
Carlisle
Dundee
Cork
Kingston
Chihuahua
Trieste
Abidjan
Santo Domingo
Bergen
Jakarta
Program:
function: Find
inputs: Jakarta
function: Find
inputs: Cumbria
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Carlisle
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jakarta" .  } UNION { ?e <pred:name> "Carlisle" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Cumbria" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carlisle