Question: Is the population higher in Hamilton, at local telephone code 07, or in Chelmsford?
Choices: Kingston
Cork
Hamilton
Chihuahua
Dundee
Bergen
Santo Domingo
Chelmsford
Kilkenny
Abidjan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "07" . } UNION { ?e <pred:name> "Chelmsford" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 0
inputs: local dialing code
07
function: Find
inputs: Chelmsford
function: SelectBetween
dependencies: 1
2
inputs: population
greater
Answer: Hamilton