QUERY PLAN
Aggregate (cost=2.17..2.18 rows=1 width=8)
-> Sort (cost=2.03..2.05 rows=9 width=765)
Sort Key: tbl_erp_account_captions.is_delete, tbl_erp_account_captions.sort, tbl_erp_account_captions.id
-> Seq Scan on tbl_erp_account_captions (cost=0.00..1.89 rows=9 width=765)
Filter: ((parent_id IS NULL) AND (type = '3'::smallint))