Question: Does Norwich (whose 2011 GSS code is E07000148) or Craven have the smaller population?
Choices:
Great Yarmouth
Woking
Guildford
Chichester
South Somerset
Craven
Norwich
North Norfolk
West Dorset
Kettering
Program:
function: Find
inputs: Norwich
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000148
function: Find
inputs: Craven
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norwich" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E07000148" . } UNION { ?e <pred:name> "Craven" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Craven