I have a query similar to this:
SELECT COALESCE( (SELECT jsonb_agg(s) FROM ((SELECT column FROM my_table)) AS s),