How can we group this query only by USER?

For reference, it looks like this thread is continued from this.