Question: What place has a greater area, Perth which has a local dialing code of 08655, or Cairns?
Choices:
Chihuahua
Cork
Trieste
Abidjan
Kingston
Dundee
Perth
Santo Domingo
Cairns
Kilkenny
Answer: Perth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cairns" . } UNION { ?e <pred:name> "Perth" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "08655" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cairns
function: Find
inputs: Perth
function: FilterStr
dependencies: 1
inputs: local dialing code
08655
function: SelectBetween
dependencies: 0
2
inputs: area
greater