Question: Which has more people, Liverpool (the one whose population is 478600) or Oldham (the one whose TOID is 7000000000018690)?
Choices: Birmingham
Liverpool
Solihull
Walsall
Leeds
Bury
Sheffield
Rochdale
Newcastle upon Tyne
Oldham
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "478600"^^xsd:double . } UNION { ?e <pred:name> "Oldham" . ?e <TOID> ?pv_2 . ?pv_2 <pred:value> "7000000000018690" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Liverpool
function: FilterNum
dependencies: 0
inputs: population
478600
=
function: Find
inputs: Oldham
function: FilterStr
dependencies: 2
inputs: TOID
7000000000018690
function: SelectBetween
dependencies: 1
3
inputs: population
greater
Answer: Liverpool