Question: Which has more people, Guildford (the one whose OS grid reference is SU9949) or Northampton (the one whose local dialing code is 01604)?
Choices: Guildford
Warwick
Maidstone
Oxford
Aylesbury
Taunton
Dorchester
Reading
Northampton
Ipswich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guildford" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "SU9949" . } UNION { ?e <pred:name> "Northampton" . ?e <local_dialing_code> ?pv_2 . ?pv_2 <pred:value> "01604" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Guildford
function: FilterStr
dependencies: 0
inputs: OS grid reference
SU9949
function: Find
inputs: Northampton
function: FilterStr
dependencies: 2
inputs: local dialing code
01604
function: SelectBetween
dependencies: 1
3
inputs: population
greater
Answer: Northampton