Question: Between Jerusalem (the one whose local dialing code is 2) and Zagreb, which one has less area
Choices:
Abidjan
Chihuahua
Cork
Bergen
Dundee
Jerusalem
Santo Domingo
Trieste
Kingston
Kilkenny
Answer: Jerusalem
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jerusalem" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "2" . } UNION { ?e <pred:name> "Zagreb" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Jerusalem
function: FilterStr
dependencies: 0
inputs: local dialing code
2
function: Find
inputs: Zagreb
function: SelectBetween
dependencies: 1
2
inputs: area
less