Whenever you're ready, walk me through how you'd approach this.
Explain how you would use SQL window functions to analyze user behavior over time.
Discuss how you would compare each event with a user's previous or next event, calculate cumulative activity, identify behavioral changes, and preserve event-level detail. Include considerations for ordering, duplicate timestamps, NULL values, and performance.