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