I need to calculate the time difference in seconds between the events 'PAUSEALL' and 'UNPAUSEALL'.
I haven't been able to make it since i'm facing two issues:
- The 'datetime' is in the same columnn for all 'events'
- The distance between the identity field called '# queue_stats_id' for the events 'PAUSEALL' and 'UNPAUSEALL' does not follow a sequence.

It would help me a lot having the results in the following format:

Thank you in advance!