Question: Which place is bigger in area, Amman or Kabul (the one that is the capital of Afghanistan)?
Choices:
Santo Domingo
Dundee
Cork
Trieste
Bergen
Amman
Kilkenny
Chihuahua
Abidjan
Kabul
Answer: Amman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amman" .  } UNION { ?e <pred:name> "Kabul" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Afghanistan" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Amman
function: Find
inputs: Afghanistan
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Kabul
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater