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