Event Stream Processor includes examples on how to use the DECLARE block, including declaring parameters and functions.