Question: Which has a greater population, Greenock or Bournemouth (whose local dialing code is 01202)?
Choices: Doncaster
Blackburn
Macclesfield
Wimbledon
Greenock
Edmonton
Royal Tunbridge Wells
South Shields
Wigan
Bournemouth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greenock" . } UNION { ?e <pred:name> "Bournemouth" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01202" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Greenock
function: Find
inputs: Bournemouth
function: FilterStr
dependencies: 1
inputs: local dialing code
01202
function: SelectBetween
dependencies: 0
2
inputs: population
greater
Answer: Bournemouth