Question: Which one has a larger population, Harlow (the one whose country is United Kingdom) or Woking (the one whose local dialing code is 01483)?
Choices:
Colchester
Woking
Wimbledon
Doncaster
South Shields
Wigan
Royal Tunbridge Wells
Harlow
Blackburn
Macclesfield
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Harlow
function: And
dependencies: 1
2
function: Find
inputs: Woking
function: FilterStr
dependencies: 4
inputs: local dialing code
01483
function: SelectBetween
dependencies: 3
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harlow" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "Woking" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01483" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Harlow