Data is aggregated over a Hopping Window where you can define:
For a size of 5s and a hop of 1s, there will be 5 aggregate windows.
See Ksql