I am attempting to find the number of occurrences of the "message to user" event per user session as well as return the maximum number of sessions per user. So this means that i would like to keep track of how many user sessions have the event "message to user" but would like to eliminate duplicates that occur in the same session if that makes sense? 

I am also looking for the total user sessions across all users

I was unsuccessful trying to find these values. My table looks like so:

```
user_id | event                      | user_session_id

1       | message to user            | 1
1       | message to user            | 1
1       | message from user          | 1
1       | message to user            | 1
1       | message from user          | 2 
1       | message to user            | 2  
1       | message to user            | 3
2       | message to user            | 1
2       | message to user            | 1
2       | message from user          | 1
2       | message to user            | 1
2       | message from user          | 2 
2       | message to user            | 2  

```

My expected output would be something like this:

```
user_id | event                      | user_session_id | max_session_by_user | total_sessions 
1       | message to user            | 1               | 3                   | 5
1       | message to user            | 2               | 3                   | 5
1       | message to user            | 3               | 3                   | 5
2       | message to user            | 1               | 2                   | 5
2       | message to user            | 2               | 2                   | 5

```

Thank you

EDIT: I added more clarification about what i meant when i am looking for with regards to the event column