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