Question: Which city is larger, Liverpool (the one whose population is 466415) or Newcastle upon Tyne (the one whose TOID is 4000000074576165)?
Choices: Newcastle upon Tyne
Kingston
Abidjan
Trieste
Dundee
Cork
Kilkenny
Chihuahua
Liverpool
Bergen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "466415"^^xsd:double . } UNION { ?e <pred:name> "Newcastle upon Tyne" . ?e <TOID> ?pv_2 . ?pv_2 <pred:value> "4000000074576165" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Liverpool
function: FilterNum
dependencies: 0
inputs: population
466415
=
function: Find
inputs: Newcastle upon Tyne
function: FilterStr
dependencies: 2
inputs: TOID
4000000074576165
function: SelectBetween
dependencies: 1
3
inputs: area
greater
Answer: Newcastle upon Tyne