Question: Which has fewer people, West Midlands (the one whose GSS code (2011) is E12000005) or London Borough of Newham?
Choices:
London Borough of Newham
Washoe County
West Midlands
Kent County
Orange County
Delaware County
Lee County
Cass County
Greene County
San Juan County
Program:
function: Find
inputs: West Midlands
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E12000005
function: Find
inputs: London Borough of Newham
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Midlands" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E12000005" . } UNION { ?e <pred:name> "London Borough of Newham" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: London Borough of Newham