sql like language for describing patterns in a stream of events