Question: Which area is larger, Derry or San Francisco (the one that is the birthplace of Bruce Lee)?
Choices:
Santo Domingo
Trieste
Dundee
San Francisco
Kilkenny
Abidjan
Derry
Kingston
Chihuahua
Cork
Answer: San Francisco
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Derry" .  } UNION { ?e <pred:name> "San Francisco" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Bruce Lee" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Derry
function: Find
inputs: Bruce Lee
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: San Francisco
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater