Get Account by Username

select id, username, email, version, valid_from
from ores.accounts
where username = 'admin'
  and valid_to = '9999-12-31 23:59:59'::timestamptz;
id	username	email	version	valid_from

Emacs 29.3 (Org mode 9.6.15)