For each account_id, return credits and debits (total amounts) in separate columns.
account_id
credits
debits
3 rows with columns account_id, credits, debits
Run your code to see the output here.