Question: Which has fewer people, Great Yarmouth (the one whose area is 174.0 square kilometre) or Cambridge (the one whose GSS code (2011) is E07000008)?
Choices:
Cambridge
Chichester
Carlisle
South Somerset
West Dorset
Woking
Guildford
Kettering
Great Yarmouth
Craven
Program:
function: Find
inputs: Great Yarmouth
function: FilterNum
dependencies: 0
inputs: area
174.0 square kilometre
=
function: Find
inputs: Cambridge
function: FilterStr
dependencies: 2
inputs: GSS code (2011)
E07000008
function: SelectBetween
dependencies: 1
3
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Great Yarmouth" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "174.0"^^xsd:double . } UNION { ?e <pred:name> "Cambridge" . ?e <GSS_code_(2011)> ?pv_2 . ?pv_2 <pred:value> "E07000008" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Great Yarmouth