Question: Which has more people, Rochdale (the one that is the twinned administrative body of Lviv) or Hamilton (the one whose local dialing code is 01698)?
Choices:
Macclesfield
Edmonton
Hamilton
Doncaster
Wimbledon
Colchester
South Shields
Royal Tunbridge Wells
Wigan
Rochdale
Program:
function: Find
inputs: Lviv
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Rochdale
function: And
dependencies: 1
2
function: Find
inputs: Hamilton
function: FilterStr
dependencies: 4
inputs: local dialing code
01698
function: SelectBetween
dependencies: 3
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rochdale" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Lviv" . } UNION { ?e <pred:name> "Hamilton" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01698" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rochdale