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