Processing nested complex sequence pattern queries over event streams
ZStream: a cost-based query processor for adaptively detecting composite events