Question: Which is bigger in terms of area: Lewiston, or Selma -- which occupies 37.302965 square kilometers?
Choices:
Oakland
Selma
Columbus
Lewiston
Compton
Lansing
Waukegan
Greenville
Boulder
Franklin
Answer: Lewiston
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lewiston" . } UNION { ?e <pred:name> "Selma" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "37.302965"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lewiston
function: Find
inputs: Selma
function: FilterNum
dependencies: 1
inputs: area
37.302965 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater