Extract user name from database

It looks like the ‘context_user_id_bin’ column contains the userid from HA with spaces.
To get the user with it in HA:

I don’t think it’s possible directly with SQL.