Question: Which area has fewer people, Woking (the one whose OS grid reference is TQ0040358550) or Winchester (the one whose population is 120700)?
Choices:
Great Yarmouth
Guildford
Craven
Chichester
Woking
North Norfolk
Winchester
West Dorset
South Somerset
Kettering
Program:
function: Find
inputs: Woking
function: FilterStr
dependencies: 0
inputs: OS grid reference
TQ0040358550
function: Find
inputs: Winchester
function: FilterNum
dependencies: 2
inputs: population
120700
=
function: SelectBetween
dependencies: 1
3
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Woking" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "TQ0040358550" . } UNION { ?e <pred:name> "Winchester" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "120700"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Woking