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