Question: Which one, Daegu or Preston (the one whose area is 142.22 square kilometre), has greater area?
Choices: Kilkenny
Trieste
Chihuahua
Cork
Abidjan
Santo Domingo
Daegu
Preston
Kingston
Dundee
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Daegu" . } UNION { ?e <pred:name> "Preston" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "142.22"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Daegu
function: Find
inputs: Preston
function: FilterNum
dependencies: 1
inputs: area
142.22 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
Answer: Daegu