Group comments by user and operation in the select command.