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