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