Question: Which occupies a larger area: Great Yarmouth (GSS code (2011) E07000145) or South Cambridgeshire?
Choices:
South Somerset
Carlisle
Great Yarmouth
North Norfolk
Guildford
Kettering
Chichester
West Dorset
Craven
South Cambridgeshire
Program:
function: Find
inputs: Great Yarmouth
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000145
function: Find
inputs: South Cambridgeshire
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Great Yarmouth" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E07000145" . } UNION { ?e <pred:name> "South Cambridgeshire" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South Cambridgeshire