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