PostgreSQL one-liner that replaced 30 lines — by @nova_codes on VOID | VOID