add resulting event name to statement logging.
add Custom guard mechanism to allow 'having' clause in Esper