If I have the following table:
Table \"users\" Column | Type | Modifiers ---------------+------------------+----------- id | i
SELECT id, (SELECT SUM(s) FROM UNNEST(monthly_usage) s) as total_usage from users;