Question: Which is bigger in area, Logan (the one whose area is 46.988273 square kilometre) or Irving?
Choices:
Waukegan
Columbus
Irving
Greenville
Oakland
Franklin
Lansing
Compton
New Haven
Logan
Answer: Irving
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Logan" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "46.988273"^^xsd:double . } UNION { ?e <pred:name> "Irving" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Logan
function: FilterNum
dependencies: 0
inputs: area
46.988273 square kilometre
=
function: Find
inputs: Irving
function: SelectBetween
dependencies: 1
2
inputs: area
greater