QUERY PLAN
HashAggregate (cost=14.49..14.63 rows=14 width=4)
Group Key: parent_id
-> Seq Scan on tbl_ledger_account_captions (cost=0.00..14.21 rows=110 width=4)
Filter: ((parent_id IS NOT NULL) AND (ledger_id = 1))