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