Question: Do more people live in Norwich  (the one whose GSS code (2011) is E07000148) or Woking (the one whose area is 63.6 square kilometre)?
Choices: South Somerset
Kettering
Craven
Woking
Great Yarmouth
North Norfolk
Guildford
Carlisle
West Dorset
Norwich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norwich" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E07000148" . } UNION { ?e <pred:name> "Woking" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "63.6"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Norwich
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000148
function: Find
inputs: Woking
function: FilterNum
dependencies: 2
inputs: area
63.6 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: population
greater
Answer: Norwich