Question: Which has more people, Liverpool (the one whose GSS code (2011) is E08000012) or Walsall (the one whose inception time is 1974-04-01)?
Choices:
Walsall
Rochdale
Stockport
Newcastle upon Tyne
Sheffield
Solihull
Wakefield
Liverpool
Birmingham
Leeds
Program:
function: Find
inputs: Liverpool
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E08000012
function: Find
inputs: Walsall
function: FilterDate
dependencies: 2
inputs: inception
1974-04-01
=
function: SelectBetween
dependencies: 1
3
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E08000012" . } UNION { ?e <pred:name> "Walsall" . ?e <inception> ?pv_2 . ?pv_2 <pred:date> "1974-04-01"^^xsd:date . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Liverpool