Question: Which country has fewer people, Birmingham (the one whose GSS code (2011) is E08000025) or Liverpool (the one whose GSS code (2011) is E08000012)?
Choices: Walsall
Birmingham
Leeds
Solihull
Liverpool
Newcastle upon Tyne
Sheffield
Bury
Rochdale
Wakefield
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Birmingham" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E08000025" . } UNION { ?e <pred:name> "Liverpool" . ?e <GSS_code_(2011)> ?pv_2 . ?pv_2 <pred:value> "E08000012" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Birmingham
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E08000025
function: Find
inputs: Liverpool
function: FilterStr
dependencies: 2
inputs: GSS code (2011)
E08000012
function: SelectBetween
dependencies: 1
3
inputs: population
less
Answer: Liverpool