QUERY PLAN
Aggregate (cost=3.75..3.76 rows=1 width=8)
-> Sort (cost=3.41..3.47 rows=23 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..2.89 rows=23 width=765)
Filter: ((parent_id IS NULL) AND (type = '1'::smallint))