Album credits psql query?

I’m hoping someone could help me with a psql query to get album credits? like producer, engineer, extra musicians etc.

Thanks!

Credits beyond the main artist are stored using relationships, see relationship types in MusicBrainz, more specifically Artist-Release Group, Artist-Release, Artist-Recording, and Artist-Work relationship types.

See MusicBrainz database schema for an introduction to tables and columns used to store these primary entities and their relationships.