Question: Which area is smaller, Hot Springs or Irvine (the one whose postal code is 92710)?
Choices:
Boulder
Irvine
Franklin
Lansing
New Haven
Oakland
Columbus
Hot Springs
Compton
Greenville
Program:
function: Find
inputs: Hot Springs
function: Find
inputs: Irvine
function: FilterStr
dependencies: 1
inputs: postal code
92710
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hot Springs" . } UNION { ?e <pred:name> "Irvine" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "92710" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hot Springs