(This is a follow up question after Postgresql - Count freuency of array or jsonb object)
In postgresql 12+, given following input rows:
postgresql