Sort  (cost=353908902.65..353908902.66 rows=1 width=424) (actual time=5451.338..5451.531 rows=10 loops=1)
  Output: term_d.id_i, term_d.id_i, '80'::text, '81'::text, (NULL::bigint), NULL::bigint, 'f'::text, (COALESCE((sum((count(attribute.*)))), '0'::numeric)), (COALESCE((sum((sum("dqEvalDimensionAggr_d"."ruleCount_s")))), '0'::numeric)), (COALESCE((count(DISTINCT attribute."parentId0")), '0'::bigint)), (COALESCE((sum((max("dqEvalAggr_d"."recordCount_s")))), '0'::bigint)), (COALESCE((sum((sum("dqEvalDimensionAggrResult_d"."resultCount_s")))), '0'::numeric)), (COALESCE((sum((sum("dqEvalDimensionAggrResult_d_2"."resultCount_s")))), '0'::numeric)), (COALESCE((max((max((NULL::bigint))))), '0'::bigint)), (COALESCE((max((max((dqresult.color_s)::text)))), 'green'::text)), (COALESCE((max((max((dqresult_1.color_s)::text)))), 'red'::text)), p."refHcn1", p."effFrom1", p."effTo1", (CASE WHEN ((NULL::bigint) >= (NULL::bigint)) THEN (NULL::bigint) ELSE (NULL::bigint) END), NULL::bigint, p.id1, p.from1
  Sort Key: term_d.id_i
  Sort Method: quicksort  Memory: 27kB
  ->  Merge Left Join  (cost=349698196.23..353908902.64 rows=1 width=424) (actual time=5449.663..5451.512 rows=10 loops=1)
        Output: term_d.id_i, term_d.id_i, '80'::text, '81'::text, (NULL::bigint), NULL::bigint, 'f'::text, COALESCE((sum((count(attribute.*)))), '0'::numeric), COALESCE((sum((sum("dqEvalDimensionAggr_d"."ruleCount_s")))), '0'::numeric), COALESCE((count(DISTINCT attribute."parentId0")), '0'::bigint), COALESCE((sum((max("dqEvalAggr_d"."recordCount_s")))), '0'::bigint), COALESCE((sum((sum("dqEvalDimensionAggrResult_d"."resultCount_s")))), '0'::numeric), COALESCE((sum((sum("dqEvalDimensionAggrResult_d_2"."resultCount_s")))), '0'::numeric), COALESCE((max((max((NULL::bigint))))), '0'::bigint), COALESCE((max((max((dqresult.color_s)::text)))), 'green'::text), COALESCE((max((max((dqresult_1.color_s)::text)))), 'red'::text), p."refHcn1", p."effFrom1", p."effTo1", CASE WHEN ((NULL::bigint) >= (NULL::bigint)) THEN (NULL::bigint) ELSE (NULL::bigint) END, NULL::bigint, p.id1, p.from1
        Inner Unique: true
        Merge Cond: (term_d.id_i = "dqEvalDimensionAggr_d".term_ri)
        ->  Sort  (cost=994.64..994.65 rows=1 width=88) (actual time=5042.583..5042.619 rows=10 loops=1)
              Output: term_d.id_i, (NULL::bigint), term_d.id_i, p."refHcn1", p."effFrom1", p."effTo1", p.id1, p.from1
              Sort Key: term_d.id_i
              Sort Method: quicksort  Memory: 26kB
              ->  Merge Join  (cost=993.58..994.63 rows=1 width=88) (actual time=5042.546..5042.606 rows=10 loops=1)
                    Output: term_d.id_i, (NULL::bigint), term_d.id_i, p."refHcn1", p."effFrom1", p."effTo1", p.id1, p.from1
                    Merge Cond: (term_d.id_i = p.id1)
                    ->  Sort  (cost=451.58..451.75 rows=68 width=3028) (actual time=5040.489..5040.507 rows=91 loops=1)
                          Output: NULL::integer, NULL::integer, term_d.id_i, (NULL::bigint), NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::uuid, term_d.id_i, NULL::integer, NULL::uuid, NULL::boolean
                          Sort Key: term_d.id_i
                          Sort Method: quicksort  Memory: 53kB
                          ->  Hash Join  (cost=416.51..449.51 rows=68 width=3028) (actual time=5040.207..5040.381 rows=203 loops=1)
                                Output: NULL::integer, NULL::integer, term_d.id_i, (NULL::bigint), NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::uuid, term_d.id_i, NULL::integer, NULL::uuid, NULL::boolean
                                Inner Unique: true
                                Hash Cond: (term_d.id_i = operations.base_id)
                                ->  Append  (cost=0.00..32.46 rows=203 width=40) (actual time=5039.030..5039.146 rows=203 loops=1)
                                      ->  Seq Scan on public.term_d  (cost=0.00..10.60 rows=60 width=40) (actual time=0.005..0.005 rows=0 loops=1)
                                            Output: term_d.id_i, NULL::bigint, term_d.id_i
                                      ->  Subquery Scan on "*SELECT* 2"  (cost=11.35..20.84 rows=143 width=40) (actual time=5039.024..5039.123 rows=203 loops=1)
                                            Output: "*SELECT* 2".id0, "*SELECT* 2".from0, "*SELECT* 2".id_i
                                            ->  Hash Anti Join  (cost=11.35..19.41 rows=143 width=3011) (actual time=5039.022..5039.105 rows=203 loops=1)
                                                  Output: NULL::integer, NULL::integer, term_p.id_i, term_p.from_h, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::uuid, term_p.id_i, NULL::integer
                                                  Hash Cond: (term_p.id_i = term_d_1.id_i)
                                                  ->  Seq Scan on public.term_p  (cost=0.00..6.03 rows=203 width=24) (actual time=5038.980..5039.014 rows=203 loops=1)
                                                        Output: term_p.id_i, term_p.parent_id_i, term_p.path_i, term_p.type_i, term_p.name_s, term_p.abbreviation_s, term_p."businessDefinition_s", term_p.synonym_s, term_p."dataSource_s", term_p.owner_ri, term_p.owner_rh, term_p.steward_ri, term_p.steward_rh, term_p."securityClassification_s", term_p.regulation_s, term_p."responsiblePerson_s", term_p."effectiveDate_s", term_p.threshold_s, term_p."technicalDescription_s", term_p.url_s, term_p.formula_s, term_p."tagetValue_s", term_p."dataCollectionMethod_s", term_p."dataCollectionFrequency_s", term_p."dataReportingFrequency_s", term_p.expiry_s, term_p.from_h, term_p.to_h
                                                        Filter: (term_p.to_h IS NULL)
                                                  ->  Hash  (cost=10.60..10.60 rows=60 width=16) (actual time=0.008..0.009 rows=0 loops=1)
                                                        Output: term_d_1.id_i
                                                        Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                        ->  Seq Scan on public.term_d term_d_1  (cost=0.00..10.60 rows=60 width=16) (actual time=0.008..0.008 rows=0 loops=1)
                                                              Output: term_d_1.id_i
                                ->  Hash  (cost=415.67..415.67 rows=67 width=16) (actual time=1.168..1.173 rows=203 loops=1)
                                      Output: operations.base_id
                                      Buckets: 1024  Batches: 1  Memory Usage: 18kB
                                      ->  Subquery Scan on operations  (cost=412.50..415.67 rows=67 width=16) (actual time=1.100..1.145 rows=203 loops=1)
                                            Output: operations.base_id
                                            ->  HashAggregate  (cost=412.50..415.00 rows=67 width=17) (actual time=1.097..1.127 rows=203 loops=1)
                                                  Output: term_a.base_id, NULL::boolean
                                                  Group Key: term_a.base_id
                                                  Filter: (COALESCE(min((((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))) FILTER (WHERE ("_RoleMapping".granting_strategy = ANY ('{2,5}'::integer[]))), 268435455) < COALESCE(min((((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))) FILTER (WHERE (("_RoleMapping".granting_strategy = ANY ('{1,4}'::integer[])) OR ("_RoleMapping".granting_strategy = 3))), 268435454))
                                                  ->  Hash Left Join  (cost=258.05..400.32 rows=812 width=22) (actual time=0.873..1.034 rows=203 loops=1)
                                                        Output: term_a.base_id, (((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping".granting_strategy
                                                        Hash Cond: ((("_RoleMapping".capability)::text = ("_Capability_OperationSet".capability)::text) AND (term_a.base_path = "_Capability_OperationSet".path))
                                                        Filter: ((("_RoleMapping".capability)::text = 'VETO'::text) = ("_Capability_OperationSet".operation_set IS NULL))
                                                        Rows Removed by Filter: 203
                                                        ->  Unique  (cost=189.53..204.75 rows=1624 width=43) (actual time=0.278..0.360 rows=406 loops=1)
                                                              Output: term_a.base_id, "_RoleMapping".capability, term_a.base_path, (((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping".granting_strategy
                                                              ->  Sort  (cost=189.53..194.60 rows=2030 width=43) (actual time=0.277..0.299 rows=406 loops=1)
                                                                    Output: term_a.base_id, "_RoleMapping".capability, term_a.base_path, (((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping".granting_strategy
                                                                    Sort Key: term_a.base_id, "_RoleMapping".capability, (((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))
                                                                    Sort Method: quicksort  Memory: 56kB
                                                                    ->  Hash Join  (cost=1.96..78.01 rows=2030 width=43) (actual time=0.042..0.152 rows=406 loops=1)
                                                                          Output: term_a.base_id, "_RoleMapping".capability, term_a.base_path, ((term_a.ancestor_distance * 3) + CASE "_RoleMapping".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END), "_RoleMapping".granting_strategy
                                                                          Hash Cond: (term_a.ancestor_id = "_RoleMapping".md_node)
                                                                          ->  Seq Scan on public.term_a  (cost=0.00..9.06 rows=406 width=40) (actual time=0.005..0.038 rows=406 loops=1)
                                                                                Output: term_a.base_id, term_a.base_path, term_a.ancestor_id, term_a.ancestor_node, term_a.ancestor_path, term_a.ancestor_type, term_a.ancestor_distance, term_a.ancestor_depth, term_a.ancestor_recursive_depth
                                                                          ->  Hash  (cost=1.83..1.83 rows=10 width=35) (actual time=0.030..0.030 rows=2 loops=1)
                                                                                Output: "_RoleMapping".capability, "_RoleMapping".granting_strategy, "_RoleMapping".md_node
                                                                                Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                ->  Seq Scan on public."_RoleMapping"  (cost=0.00..1.83 rows=10 width=35) (actual time=0.015..0.023 rows=2 loops=1)
                                                                                      Output: "_RoleMapping".capability, "_RoleMapping".granting_strategy, "_RoleMapping".md_node
                                                                                      Filter: (("_RoleMapping".role)::text = ANY ('{RDM_user,default,MDA_superuser,DPP_admin,RDM_admin,admin,RDM,MMM_user,MDA_user,MMM_admin}'::text[]))
                                                                                      Rows Removed by Filter: 35
                                                        ->  Hash  (cost=38.21..38.21 rows=2021 width=36) (actual time=0.582..0.583 rows=2021 loops=1)
                                                              Output: "_Capability_OperationSet".capability, "_Capability_OperationSet".path, "_Capability_OperationSet".operation_set
                                                              Buckets: 2048  Batches: 1  Memory Usage: 157kB
                                                              ->  Seq Scan on public."_Capability_OperationSet"  (cost=0.00..38.21 rows=2021 width=36) (actual time=0.006..0.212 rows=2021 loops=1)
                                                                    Output: "_Capability_OperationSet".capability, "_Capability_OperationSet".path, "_Capability_OperationSet".operation_set
                    ->  Materialize  (cost=542.00..542.02 rows=1 width=48) (actual time=2.043..2.073 rows=10 loops=1)
                          Output: p.path1, p.type1, p.id1, p.from1, p.to1, p.dop1, p."parentId1", p.id_i_p, p.parent_id_i_p, p.path_i_p, p.type_i_p, p.name_s_p, p.abbreviation_s_p, p."businessDefinition_s_p", p.synonym_s_p, p."dataSource_s_p", p.owner_ri_p, p.owner_rh_p, p.steward_ri_p, p.steward_rh_p, p."securityClassification_s_p", p.regulation_s_p, p."responsiblePerson_s_p", p."effectiveDate_s_p", p.threshold_s_p, p."technicalDescription_s_p", p.url_s_p, p.formula_s_p, p."tagetValue_s_p", p."dataCollectionMethod_s_p", p."dataCollectionFrequency_s_p", p."dataReportingFrequency_s_p", p.expiry_s_p, p.from_h_p, p.to_h_p, p.id_f, p.author_f, p.timestamp_f, p.id_i_d, p.parent_id_i_d, p.path_i_d, p.type_i_d, p.name_s_d, p.abbreviation_s_d, p."businessDefinition_s_d", p.synonym_s_d, p."dataSource_s_d", p.owner_ri_d, p.owner_rh_d, p.steward_ri_d, p.steward_rh_d, p."securityClassification_s_d", p.regulation_s_d, p."responsiblePerson_s_d", p."effectiveDate_s_d", p.threshold_s_d, p."technicalDescription_s_d", p.url_s_d, p.formula_s_d, p."tagetValue_s_d", p."dataCollectionMethod_s_d", p."dataCollectionFrequency_s_d", p."dataReportingFrequency_s_d", p.expiry_s_d, p.change_type_d_d, p.author_d_d, p.timestamp_d_d, p.name_s, p.abbreviation_s, p."businessDefinition_s", p.synonym_s, p."dataSource_s", p."securityClassification_s", p.regulation_s, p."responsiblePerson_s", p."effectiveDate_s", p.threshold_s, p."technicalDescription_s", p.url_s, p.formula_s, p."tagetValue_s", p."dataCollectionMethod_s", p."dataCollectionFrequency_s", p."dataReportingFrequency_s", p.expiry_s, p.owner_ri, p.owner_rh, p.steward_ri, p.steward_rh, p.parent_id_i, p.id_i, p.path_i, p.base_id, p."f-og0", p."refHcn1", p."effFrom1", p."effTo1", p."sourceId1", p."sourceHcn1", p.rn_c
                          ->  Subquery Scan on p  (cost=542.00..542.02 rows=1 width=48) (actual time=2.041..2.070 rows=10 loops=1)
                                Output: p.path1, p.type1, p.id1, p.from1, p.to1, p.dop1, p."parentId1", p.id_i_p, p.parent_id_i_p, p.path_i_p, p.type_i_p, p.name_s_p, p.abbreviation_s_p, p."businessDefinition_s_p", p.synonym_s_p, p."dataSource_s_p", p.owner_ri_p, p.owner_rh_p, p.steward_ri_p, p.steward_rh_p, p."securityClassification_s_p", p.regulation_s_p, p."responsiblePerson_s_p", p."effectiveDate_s_p", p.threshold_s_p, p."technicalDescription_s_p", p.url_s_p, p.formula_s_p, p."tagetValue_s_p", p."dataCollectionMethod_s_p", p."dataCollectionFrequency_s_p", p."dataReportingFrequency_s_p", p.expiry_s_p, p.from_h_p, p.to_h_p, p.id_f, p.author_f, p.timestamp_f, p.id_i_d, p.parent_id_i_d, p.path_i_d, p.type_i_d, p.name_s_d, p.abbreviation_s_d, p."businessDefinition_s_d", p.synonym_s_d, p."dataSource_s_d", p.owner_ri_d, p.owner_rh_d, p.steward_ri_d, p.steward_rh_d, p."securityClassification_s_d", p.regulation_s_d, p."responsiblePerson_s_d", p."effectiveDate_s_d", p.threshold_s_d, p."technicalDescription_s_d", p.url_s_d, p.formula_s_d, p."tagetValue_s_d", p."dataCollectionMethod_s_d", p."dataCollectionFrequency_s_d", p."dataReportingFrequency_s_d", p.expiry_s_d, p.change_type_d_d, p.author_d_d, p.timestamp_d_d, p.name_s, p.abbreviation_s, p."businessDefinition_s", p.synonym_s, p."dataSource_s", p."securityClassification_s", p.regulation_s, p."responsiblePerson_s", p."effectiveDate_s", p.threshold_s, p."technicalDescription_s", p.url_s, p.formula_s, p."tagetValue_s", p."dataCollectionMethod_s", p."dataCollectionFrequency_s", p."dataReportingFrequency_s", p.expiry_s, p.owner_ri, p.owner_rh, p.steward_ri, p.steward_rh, p.parent_id_i, p.id_i, p.path_i, p.base_id, p."f-og0", p."refHcn1", p."effFrom1", p."effTo1", p."sourceId1", p."sourceHcn1", p.rn_c
                                Filter: ((0 < p.rn_c) AND (p.rn_c <= 10))
                                Rows Removed by Filter: 13
                                ->  Sort  (cost=542.00..542.00 rows=1 width=3084) (actual time=2.020..2.043 rows=23 loops=1)
                                      Output: NULL::integer, NULL::integer, term_d_2.id_i, (NULL::bigint), NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer, NULL::uuid, NULL::boolean, w2.to2, (CASE WHEN ((NULL::bigint) >= (NULL::bigint)) THEN (NULL::bigint) ELSE (NULL::bigint) END), (CASE WHEN ((NULL::bigint) IS NULL) THEN (NULL::bigint) WHEN ((NULL::bigint) IS NULL) THEN (NULL::bigint) WHEN ((NULL::bigint) <= (NULL::bigint)) THEN (NULL::bigint) ELSE (NULL::bigint) END), w2.id2, w2.from2, (row_number() OVER (?))
                                      Sort Key: term_d_2.id_i
                                      Sort Method: quicksort  Memory: 28kB
                                      ->  WindowAgg  (cost=541.96..541.99 rows=1 width=3084) (actual time=1.994..2.028 rows=23 loops=1)
                                            Output: NULL::integer, NULL::integer, term_d_2.id_i, (NULL::bigint), NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer, NULL::uuid, NULL::boolean, w2.to2, CASE WHEN ((NULL::bigint) >= (NULL::bigint)) THEN (NULL::bigint) ELSE (NULL::bigint) END, CASE WHEN ((NULL::bigint) IS NULL) THEN (NULL::bigint) WHEN ((NULL::bigint) IS NULL) THEN (NULL::bigint) WHEN ((NULL::bigint) <= (NULL::bigint)) THEN (NULL::bigint) ELSE (NULL::bigint) END, w2.id2, w2.from2, row_number() OVER (?)
                                            ->  Sort  (cost=541.96..541.96 rows=1 width=64) (actual time=1.983..2.005 rows=23 loops=1)
                                                  Output: term_d_2.id_i, w2.id2, w2.from2, (NULL::bigint), w2.to2, (NULL::bigint)
                                                  Sort Key: w2.id2, w2.from2, term_d_2.id_i
                                                  Sort Method: quicksort  Memory: 26kB
                                                  ->  Hash Join  (cost=492.51..541.95 rows=1 width=64) (actual time=1.641..1.978 rows=23 loops=1)
                                                        Output: term_d_2.id_i, w2.id2, w2.from2, (NULL::bigint), w2.to2, (NULL::bigint)
                                                        Inner Unique: true
                                                        Hash Cond: (term_d_2.id_i = operations_1.base_id)
                                                        ->  Hash Join  (cost=76.00..125.43 rows=1 width=64) (actual time=0.573..0.900 rows=23 loops=1)
                                                              Output: term_d_2.id_i, (NULL::bigint), (NULL::bigint), w2.to2, w2.id2, w2.from2
                                                              Hash Cond: (term_d_2.parent_id_i = w2.id2)
                                                              ->  Append  (cost=0.00..49.27 rows=41 width=48) (actual time=0.078..0.389 rows=23 loops=1)
                                                                    ->  Seq Scan on public.term_d term_d_2  (cost=0.00..15.25 rows=12 width=48) (actual time=0.001..0.002 rows=0 loops=1)
                                                                          Output: term_d_2.id_i, NULL::bigint, NULL::bigint, term_d_2.parent_id_i
                                                                          Filter: (upper((((((((((((((((''::text || (COALESCE(term_d_2.name_s, ''::character varying))::text) || (''::text || (COALESCE(term_d_2.abbreviation_s, ''::character varying))::text)) || (''::text || (COALESCE(term_d_2.synonym_s, ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."dataSource_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."securityClassification_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2.regulation_s, ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."responsiblePerson_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."effectiveDate_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."technicalDescription_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2.url_s, ''::character varying))::text)) || (''::text || (COALESCE(term_d_2.formula_s, ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."dataCollectionMethod_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."dataCollectionFrequency_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2."dataReportingFrequency_s", ''::character varying))::text)) || (''::text || (COALESCE(term_d_2.expiry_s, ''::character varying))::text))) ~~ '%NA%'::text)
                                                                    ->  Subquery Scan on "*SELECT* 2_1"  (cost=11.35..33.81 rows=29 width=48) (actual time=0.076..0.384 rows=23 loops=1)
                                                                          Output: "*SELECT* 2_1".id1, "*SELECT* 2_1".from1, "*SELECT* 2_1".to1, "*SELECT* 2_1"."parentId1"
                                                                          ->  Hash Anti Join  (cost=11.35..33.52 rows=29 width=3011) (actual time=0.075..0.380 rows=23 loops=1)
                                                                                Output: NULL::integer, NULL::integer, term_p_1.id_i, term_p_1.from_h, term_p_1.to_h, NULL::boolean, term_p_1.parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, NULL::character varying, NULL::text, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::double precision, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                Hash Cond: (term_p_1.id_i = term_d_3.id_i)
                                                                                ->  Seq Scan on public.term_p term_p_1  (cost=0.00..21.76 rows=41 width=48) (actual time=0.065..0.362 rows=23 loops=1)
                                                                                      Output: term_p_1.id_i, term_p_1.parent_id_i, term_p_1.path_i, term_p_1.type_i, term_p_1.name_s, term_p_1.abbreviation_s, term_p_1."businessDefinition_s", term_p_1.synonym_s, term_p_1."dataSource_s", term_p_1.owner_ri, term_p_1.owner_rh, term_p_1.steward_ri, term_p_1.steward_rh, term_p_1."securityClassification_s", term_p_1.regulation_s, term_p_1."responsiblePerson_s", term_p_1."effectiveDate_s", term_p_1.threshold_s, term_p_1."technicalDescription_s", term_p_1.url_s, term_p_1.formula_s, term_p_1."tagetValue_s", term_p_1."dataCollectionMethod_s", term_p_1."dataCollectionFrequency_s", term_p_1."dataReportingFrequency_s", term_p_1.expiry_s, term_p_1.from_h, term_p_1.to_h
                                                                                      Filter: ((term_p_1.to_h IS NULL) AND (upper((((((((((((((((''::text || (COALESCE(term_p_1.name_s, ''::character varying))::text) || (''::text || (COALESCE(term_p_1.abbreviation_s, ''::character varying))::text)) || (''::text || (COALESCE(term_p_1.synonym_s, ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."dataSource_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."securityClassification_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1.regulation_s, ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."responsiblePerson_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."effectiveDate_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."technicalDescription_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1.url_s, ''::character varying))::text)) || (''::text || (COALESCE(term_p_1.formula_s, ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."dataCollectionMethod_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."dataCollectionFrequency_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1."dataReportingFrequency_s", ''::character varying))::text)) || (''::text || (COALESCE(term_p_1.expiry_s, ''::character varying))::text))) ~~ '%NA%'::text))
                                                                                      Rows Removed by Filter: 180
                                                                                ->  Hash  (cost=10.60..10.60 rows=60 width=16) (actual time=0.001..0.002 rows=0 loops=1)
                                                                                      Output: term_d_3.id_i
                                                                                      Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                      ->  Seq Scan on public.term_d term_d_3  (cost=0.00..10.60 rows=60 width=16) (actual time=0.001..0.001 rows=0 loops=1)
                                                                                            Output: term_d_3.id_i
                                                              ->  Hash  (cost=75.99..75.99 rows=1 width=32) (actual time=0.487..0.498 rows=1 loops=1)
                                                                    Output: w2.to2, w2.id2, w2.from2
                                                                    Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                    ->  Subquery Scan on w2  (cost=67.79..75.99 rows=1 width=32) (actual time=0.484..0.496 rows=1 loops=1)
                                                                          Output: w2.to2, w2.id2, w2.from2
                                                                          ->  Merge Join  (cost=67.79..75.98 rows=1 width=1314) (actual time=0.483..0.494 rows=1 loops=1)
                                                                                Output: NULL::integer, NULL::integer, metadata_d.id_i, (NULL::bigint), (NULL::bigint), NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::uuid, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean
                                                                                Inner Unique: true
                                                                                Merge Cond: (metadata_d.id_i = "distinct".base_id)
                                                                                ->  Merge Append  (cost=9.36..17.40 rows=2 width=32) (actual time=0.025..0.028 rows=1 loops=1)
                                                                                      Sort Key: metadata_d.id_i
                                                                                      ->  Index Only Scan using pk_745cf09a11ed445294ade18468d6ffb4 on public.metadata_d  (cost=0.14..8.16 rows=1 width=32) (actual time=0.004..0.004 rows=0 loops=1)
                                                                                            Output: metadata_d.id_i, NULL::bigint, NULL::bigint
                                                                                            Index Cond: (metadata_d.id_i = '00000000-0000-0000-0000-000000000001'::uuid)
                                                                                            Heap Fetches: 0
                                                                                      ->  Sort  (cost=9.21..9.21 rows=1 width=32) (actual time=0.020..0.022 rows=1 loops=1)
                                                                                            Output: "*SELECT* 2_2".id2, "*SELECT* 2_2".from2, "*SELECT* 2_2".to2
                                                                                            Sort Key: "*SELECT* 2_2".id2
                                                                                            Sort Method: quicksort  Memory: 25kB
                                                                                            ->  Subquery Scan on "*SELECT* 2_2"  (cost=8.17..9.20 rows=1 width=32) (actual time=0.017..0.019 rows=1 loops=1)
                                                                                                  Output: "*SELECT* 2_2".id2, "*SELECT* 2_2".from2, "*SELECT* 2_2".to2
                                                                                                  ->  Hash Anti Join  (cost=8.17..9.19 rows=1 width=1283) (actual time=0.016..0.017 rows=1 loops=1)
                                                                                                        Output: NULL::integer, NULL::integer, metadata_p.id_i, metadata_p.from_h, metadata_p.to_h, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                        Hash Cond: (metadata_p.id_i = metadata_d_1.id_i)
                                                                                                        ->  Seq Scan on public.metadata_p  (cost=0.00..1.01 rows=1 width=32) (actual time=0.008..0.008 rows=1 loops=1)
                                                                                                              Output: metadata_p.id_i, metadata_p.parent_id_i, metadata_p.path_i, metadata_p.type_i, metadata_p.from_h, metadata_p.to_h
                                                                                                              Filter: ((metadata_p.to_h IS NULL) AND (metadata_p.id_i = '00000000-0000-0000-0000-000000000001'::uuid))
                                                                                                        ->  Hash  (cost=8.16..8.16 rows=1 width=16) (actual time=0.002..0.002 rows=0 loops=1)
                                                                                                              Output: metadata_d_1.id_i
                                                                                                              Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                                              ->  Index Only Scan using pk_745cf09a11ed445294ade18468d6ffb4 on public.metadata_d metadata_d_1  (cost=0.14..8.16 rows=1 width=16) (actual time=0.001..0.002 rows=0 loops=1)
                                                                                                                    Output: metadata_d_1.id_i
                                                                                                                    Index Cond: (metadata_d_1.id_i = '00000000-0000-0000-0000-000000000001'::uuid)
                                                                                                                    Heap Fetches: 0
                                                                                ->  GroupAggregate  (cost=58.43..58.55 rows=1 width=31) (actual time=0.452..0.458 rows=1 loops=1)
                                                                                      Output: "distinct".base_id, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean, NULL::boolean
                                                                                      Group Key: "distinct".base_id
                                                                                      Filter: (COALESCE(min("distinct".distance) FILTER (WHERE (metadata_o.og6 AND ("distinct".granting_strategy = ANY ('{2,5}'::integer[])))), 268435455) < COALESCE(min("distinct".distance) FILTER (WHERE (("distinct".granting_strategy = ANY ('{1,4}'::integer[])) OR (metadata_o.og6 AND ("distinct".granting_strategy = 3)))), 268435454))
                                                                                      ->  Sort  (cost=58.43..58.44 rows=4 width=23) (actual time=0.443..0.449 rows=4 loops=1)
                                                                                            Output: "distinct".base_id, "distinct".distance, metadata_o.og6, "distinct".granting_strategy
                                                                                            Sort Key: "distinct".base_id
                                                                                            Sort Method: quicksort  Memory: 25kB
                                                                                            ->  Hash Left Join  (cost=4.97..58.39 rows=4 width=23) (actual time=0.204..0.446 rows=4 loops=1)
                                                                                                  Output: "distinct".base_id, "distinct".distance, metadata_o.og6, "distinct".granting_strategy
                                                                                                  Inner Unique: true
                                                                                                  Hash Cond: (("_Capability_OperationSet_1".operation_set)::text = (metadata_o.id_i)::text)
                                                                                                  Filter: ((("distinct".capability)::text = 'VETO'::text) = (metadata_o.id_i IS NULL))
                                                                                                  ->  Hash Right Join  (cost=3.63..57.01 rows=8 width=45) (actual time=0.187..0.427 rows=4 loops=1)
                                                                                                        Output: "distinct".base_id, "distinct".distance, "distinct".granting_strategy, "distinct".capability, "_Capability_OperationSet_1".operation_set
                                                                                                        Hash Cond: ((("_Capability_OperationSet_1".capability)::text = ("distinct".capability)::text) AND ("_Capability_OperationSet_1".path = "distinct".base_path))
                                                                                                        ->  Seq Scan on public."_Capability_OperationSet" "_Capability_OperationSet_1"  (cost=0.00..38.21 rows=2021 width=36) (actual time=0.005..0.160 rows=2021 loops=1)
                                                                                                              Output: "_Capability_OperationSet_1".capability, "_Capability_OperationSet_1".operation_set, "_Capability_OperationSet_1".path
                                                                                                        ->  Hash  (cost=3.51..3.51 rows=8 width=43) (actual time=0.039..0.043 rows=2 loops=1)
                                                                                                              Output: "distinct".base_id, "distinct".distance, "distinct".granting_strategy, "distinct".capability, "distinct".base_path
                                                                                                              Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                                              ->  Subquery Scan on "distinct"  (cost=3.36..3.51 rows=8 width=43) (actual time=0.033..0.038 rows=2 loops=1)
                                                                                                                    Output: "distinct".base_id, "distinct".distance, "distinct".granting_strategy, "distinct".capability, "distinct".base_path
                                                                                                                    ->  Unique  (cost=3.36..3.43 rows=8 width=43) (actual time=0.031..0.036 rows=2 loops=1)
                                                                                                                          Output: metadata_a.base_id, "_RoleMapping_1".capability, metadata_a.base_path, (((metadata_a.ancestor_distance * 3) + CASE "_RoleMapping_1".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping_1".granting_strategy
                                                                                                                          ->  Sort  (cost=3.36..3.38 rows=10 width=43) (actual time=0.031..0.033 rows=2 loops=1)
                                                                                                                                Output: metadata_a.base_id, "_RoleMapping_1".capability, metadata_a.base_path, (((metadata_a.ancestor_distance * 3) + CASE "_RoleMapping_1".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping_1".granting_strategy
                                                                                                                                Sort Key: metadata_a.base_id, "_RoleMapping_1".capability, (((metadata_a.ancestor_distance * 3) + CASE "_RoleMapping_1".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))
                                                                                                                                Sort Method: quicksort  Memory: 25kB
                                                                                                                                ->  Hash Join  (cost=1.02..3.19 rows=10 width=43) (actual time=0.018..0.028 rows=2 loops=1)
                                                                                                                                      Output: metadata_a.base_id, "_RoleMapping_1".capability, metadata_a.base_path, ((metadata_a.ancestor_distance * 3) + CASE "_RoleMapping_1".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END), "_RoleMapping_1".granting_strategy
                                                                                                                                      Hash Cond: ("_RoleMapping_1".md_node = metadata_a.ancestor_id)
                                                                                                                                      ->  Seq Scan on public."_RoleMapping" "_RoleMapping_1"  (cost=0.00..1.83 rows=10 width=35) (actual time=0.005..0.014 rows=2 loops=1)
                                                                                                                                            Output: "_RoleMapping_1".node, "_RoleMapping_1".path, "_RoleMapping_1".type, "_RoleMapping_1".md_node, "_RoleMapping_1".capability, "_RoleMapping_1".role, "_RoleMapping_1".granting_strategy
                                                                                                                                            Filter: (("_RoleMapping_1".role)::text = ANY ('{RDM_user,default,MDA_superuser,DPP_admin,RDM_admin,admin,RDM,MMM_user,MDA_user,MMM_admin}'::text[]))
                                                                                                                                            Rows Removed by Filter: 35
                                                                                                                                      ->  Hash  (cost=1.01..1.01 rows=1 width=40) (actual time=0.006..0.007 rows=1 loops=1)
                                                                                                                                            Output: metadata_a.base_id, metadata_a.base_path, metadata_a.ancestor_distance, metadata_a.ancestor_id
                                                                                                                                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                                                                            ->  Seq Scan on public.metadata_a  (cost=0.00..1.01 rows=1 width=40) (actual time=0.004..0.004 rows=1 loops=1)
                                                                                                                                                  Output: metadata_a.base_id, metadata_a.base_path, metadata_a.ancestor_distance, metadata_a.ancestor_id
                                                                                                  ->  Hash  (cost=1.15..1.15 rows=15 width=15) (actual time=0.009..0.009 rows=15 loops=1)
                                                                                                        Output: metadata_o.og6, metadata_o.id_i
                                                                                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                                        ->  Seq Scan on public.metadata_o  (cost=0.00..1.15 rows=15 width=15) (actual time=0.003..0.005 rows=15 loops=1)
                                                                                                              Output: metadata_o.og6, metadata_o.id_i
                                                        ->  Hash  (cost=415.67..415.67 rows=67 width=16) (actual time=1.063..1.067 rows=203 loops=1)
                                                              Output: operations_1.base_id
                                                              Buckets: 1024  Batches: 1  Memory Usage: 18kB
                                                              ->  Subquery Scan on operations_1  (cost=412.50..415.67 rows=67 width=16) (actual time=0.998..1.041 rows=203 loops=1)
                                                                    Output: operations_1.base_id
                                                                    ->  HashAggregate  (cost=412.50..415.00 rows=67 width=17) (actual time=0.996..1.024 rows=203 loops=1)
                                                                          Output: term_a_1.base_id, NULL::boolean
                                                                          Group Key: term_a_1.base_id
                                                                          Filter: (COALESCE(min((((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))) FILTER (WHERE ("_RoleMapping_2".granting_strategy = ANY ('{2,5}'::integer[]))), 268435455) < COALESCE(min((((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))) FILTER (WHERE (("_RoleMapping_2".granting_strategy = ANY ('{1,4}'::integer[])) OR ("_RoleMapping_2".granting_strategy = 3))), 268435454))
                                                                          ->  Hash Left Join  (cost=258.05..400.32 rows=812 width=22) (actual time=0.778..0.927 rows=203 loops=1)
                                                                                Output: term_a_1.base_id, (((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping_2".granting_strategy
                                                                                Hash Cond: ((("_RoleMapping_2".capability)::text = ("_Capability_OperationSet_2".capability)::text) AND (term_a_1.base_path = "_Capability_OperationSet_2".path))
                                                                                Filter: ((("_RoleMapping_2".capability)::text = 'VETO'::text) = ("_Capability_OperationSet_2".operation_set IS NULL))
                                                                                Rows Removed by Filter: 203
                                                                                ->  Unique  (cost=189.53..204.75 rows=1624 width=43) (actual time=0.208..0.278 rows=406 loops=1)
                                                                                      Output: term_a_1.base_id, "_RoleMapping_2".capability, term_a_1.base_path, (((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping_2".granting_strategy
                                                                                      ->  Sort  (cost=189.53..194.60 rows=2030 width=43) (actual time=0.208..0.228 rows=406 loops=1)
                                                                                            Output: term_a_1.base_id, "_RoleMapping_2".capability, term_a_1.base_path, (((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END)), "_RoleMapping_2".granting_strategy
                                                                                            Sort Key: term_a_1.base_id, "_RoleMapping_2".capability, (((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END))
                                                                                            Sort Method: quicksort  Memory: 56kB
                                                                                            ->  Hash Join  (cost=1.96..78.01 rows=2030 width=43) (actual time=0.026..0.133 rows=406 loops=1)
                                                                                                  Output: term_a_1.base_id, "_RoleMapping_2".capability, term_a_1.base_path, ((term_a_1.ancestor_distance * 3) + CASE "_RoleMapping_2".granting_strategy WHEN 0 THEN 2 WHEN 3 THEN 0 WHEN 1 THEN 2 WHEN 4 THEN '-268435455'::integer WHEN 5 THEN '-536870910'::integer WHEN 2 THEN 1 ELSE 0 END), "_RoleMapping_2".granting_strategy
                                                                                                  Hash Cond: (term_a_1.ancestor_id = "_RoleMapping_2".md_node)
                                                                                                  ->  Seq Scan on public.term_a term_a_1  (cost=0.00..9.06 rows=406 width=40) (actual time=0.004..0.035 rows=406 loops=1)
                                                                                                        Output: term_a_1.base_id, term_a_1.base_path, term_a_1.ancestor_id, term_a_1.ancestor_node, term_a_1.ancestor_path, term_a_1.ancestor_type, term_a_1.ancestor_distance, term_a_1.ancestor_depth, term_a_1.ancestor_recursive_depth
                                                                                                  ->  Hash  (cost=1.83..1.83 rows=10 width=35) (actual time=0.014..0.014 rows=2 loops=1)
                                                                                                        Output: "_RoleMapping_2".capability, "_RoleMapping_2".granting_strategy, "_RoleMapping_2".md_node
                                                                                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                                        ->  Seq Scan on public."_RoleMapping" "_RoleMapping_2"  (cost=0.00..1.83 rows=10 width=35) (actual time=0.004..0.012 rows=2 loops=1)
                                                                                                              Output: "_RoleMapping_2".capability, "_RoleMapping_2".granting_strategy, "_RoleMapping_2".md_node
                                                                                                              Filter: (("_RoleMapping_2".role)::text = ANY ('{RDM_user,default,MDA_superuser,DPP_admin,RDM_admin,admin,RDM,MMM_user,MDA_user,MMM_admin}'::text[]))
                                                                                                              Rows Removed by Filter: 35
                                                                                ->  Hash  (cost=38.21..38.21 rows=2021 width=36) (actual time=0.558..0.559 rows=2021 loops=1)
                                                                                      Output: "_Capability_OperationSet_2".capability, "_Capability_OperationSet_2".path, "_Capability_OperationSet_2".operation_set
                                                                                      Buckets: 2048  Batches: 1  Memory Usage: 157kB
                                                                                      ->  Seq Scan on public."_Capability_OperationSet" "_Capability_OperationSet_2"  (cost=0.00..38.21 rows=2021 width=36) (actual time=0.003..0.183 rows=2021 loops=1)
                                                                                            Output: "_Capability_OperationSet_2".capability, "_Capability_OperationSet_2".path, "_Capability_OperationSet_2".operation_set
        ->  GroupAggregate  (cost=349697201.59..353907905.48 rows=200 width=232) (actual time=407.041..408.877 rows=10 loops=1)
              Output: "dqEvalDimensionAggr_d".term_ri, sum((sum("dqEvalDimensionAggrResult_d"."resultCount_s"))), max((max((dqresult.color_s)::text))), sum((sum("dqEvalDimensionAggrResult_d_2"."resultCount_s"))), max((max((dqresult_1.color_s)::text))), count(DISTINCT attribute."parentId0"), sum((max("dqEvalAggr_d"."recordCount_s"))), sum((count(attribute.*))), sum((sum("dqEvalDimensionAggr_d"."ruleCount_s"))), max((max((NULL::bigint))))
              Group Key: "dqEvalDimensionAggr_d".term_ri
              ->  GroupAggregate  (cost=349697201.59..353906501.48 rows=40000 width=140) (actual time=407.015..408.424 rows=1452 loops=1)
                    Output: attribute."parentId0", max((dqresult.color_s)::text), sum("dqEvalDimensionAggrResult_d"."resultCount_s"), max((dqresult_1.color_s)::text), sum("dqEvalDimensionAggrResult_d_2"."resultCount_s"), "dqEvalDimensionAggr_d".term_ri, sum("dqEvalDimensionAggr_d"."ruleCount_s"), max("dqEvalAggr_d"."recordCount_s"), max((NULL::bigint)), count(attribute.*)
                    Group Key: "dqEvalDimensionAggr_d".term_ri, attribute."parentId0"
                    ->  Sort  (cost=349697201.59..350079828.86 rows=153050905 width=1634) (actual time=406.992..407.347 rows=1580 loops=1)
                          Output: attribute."parentId0", "dqEvalDimensionAggr_d".term_ri, dqresult.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d_2"."resultCount_s", "dqEvalDimensionAggr_d"."ruleCount_s", "dqEvalAggr_d"."recordCount_s", (NULL::bigint), attribute.*
                          Sort Key: "dqEvalDimensionAggr_d".term_ri, attribute."parentId0"
                          Sort Method: external merge  Disk: 19600kB
                          ->  Merge Left Join  (cost=158446.60..2461469.41 rows=153050905 width=1634) (actual time=253.400..330.263 rows=54469 loops=1)
                                Output: attribute."parentId0", "dqEvalDimensionAggr_d".term_ri, dqresult.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d_2"."resultCount_s", "dqEvalDimensionAggr_d"."ruleCount_s", "dqEvalAggr_d"."recordCount_s", (NULL::bigint), attribute.*
                                Merge Cond: (attribute.id0 = "dqEvalAggr_d".parent_id_i)
                                ->  Subquery Scan on attribute  (cost=20855.26..26193.08 rows=42138 width=1570) (actual time=108.928..175.186 rows=50566 loops=1)
                                      Output: attribute."parentId0", attribute.*, attribute.id0
                                      ->  Gather Merge  (cost=20855.26..25771.70 rows=42138 width=1514) (actual time=108.740..119.779 rows=50566 loops=1)
                                            Output: attribute_p.path_i, attribute_p.type_i, attribute_p.id_i, attribute_p.from_h, attribute_p.to_h, (true), attribute_p.parent_id_i, attribute_p.id_i, attribute_p.parent_id_i, attribute_p.path_i, attribute_p.type_i, attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.from_h, attribute_p.to_h, f0.id, f0.author, f0."timestamp", (NULL::uuid), (NULL::uuid), (NULL::integer), (NULL::integer), (NULL::character varying), (NULL::character varying), (NULL::character varying), (NULL::character varying), (NULL::character varying), (NULL::boolean), (NULL::integer), (NULL::character varying), (NULL::boolean), (NULL::integer), (NULL::boolean), (NULL::integer), (NULL::integer), (NULL::integer), (NULL::character varying), (NULL::boolean), (NULL::boolean), (NULL::boolean), (NULL::character varying), (NULL::character varying), (NULL::character varying(10)), (NULL::character varying(255)), (NULL::timestamp with time zone), attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.parent_id_i, attribute_p.id_i, attribute_p.path_i
                                            Workers Planned: 2
                                            Workers Launched: 2
                                            ->  Sort  (cost=19855.23..19907.91 rows=21069 width=1514) (actual time=35.769..38.186 rows=16855 loops=3)
                                                  Output: attribute_p.path_i, attribute_p.type_i, attribute_p.id_i, attribute_p.from_h, attribute_p.to_h, (true), attribute_p.parent_id_i, attribute_p.id_i, attribute_p.parent_id_i, attribute_p.path_i, attribute_p.type_i, attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.from_h, attribute_p.to_h, f0.id, f0.author, f0."timestamp", (NULL::uuid), (NULL::uuid), (NULL::integer), (NULL::integer), (NULL::character varying), (NULL::character varying), (NULL::character varying), (NULL::character varying), (NULL::character varying), (NULL::boolean), (NULL::integer), (NULL::character varying), (NULL::boolean), (NULL::integer), (NULL::boolean), (NULL::integer), (NULL::integer), (NULL::integer), (NULL::character varying), (NULL::boolean), (NULL::boolean), (NULL::boolean), (NULL::character varying), (NULL::character varying), (NULL::character varying(10)), (NULL::character varying(255)), (NULL::timestamp with time zone), attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.parent_id_i, attribute_p.id_i, attribute_p.path_i
                                                  Sort Key: attribute_p.id_i
                                                  Sort Method: external merge  Disk: 15568kB
                                                  Worker 0:  Sort Method: quicksort  Memory: 25kB
                                                  Worker 1:  Sort Method: quicksort  Memory: 25kB
                                                  Worker 0: actual time=0.141..0.142 rows=0 loops=1
                                                  Worker 1: actual time=0.186..0.188 rows=0 loops=1
                                                  ->  Parallel Append  (cost=0.00..4440.18 rows=21069 width=1514) (actual time=3.645..13.343 rows=16855 loops=3)
                                                        Worker 0: actual time=0.001..0.002 rows=0 loops=1
                                                        Worker 1: actual time=0.001..0.002 rows=0 loops=1
                                                        ->  Hash Left Join  (cost=1740.62..3819.51 rows=50486 width=1513) (actual time=10.933..36.880 rows=50566 loops=1)
                                                              Output: attribute_p.path_i, attribute_p.type_i, attribute_p.id_i, attribute_p.from_h, attribute_p.to_h, true, attribute_p.parent_id_i, attribute_p.id_i, attribute_p.parent_id_i, attribute_p.path_i, attribute_p.type_i, attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.from_h, attribute_p.to_h, f0.id, f0.author, f0."timestamp", NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::boolean, NULL::integer, NULL::character varying, NULL::boolean, NULL::integer, NULL::boolean, NULL::integer, NULL::integer, NULL::integer, NULL::character varying, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying, NULL::character varying, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.parent_id_i, attribute_p.id_i, attribute_p.path_i
                                                              Inner Unique: true
                                                              Hash Cond: (attribute_p.from_h = f0.id)
                                                              ->  Hash Anti Join  (cost=11.80..1958.15 rows=50486 width=264) (actual time=0.019..15.047 rows=50566 loops=1)
                                                                    Output: attribute_p.path_i, attribute_p.type_i, attribute_p.id_i, attribute_p.from_h, attribute_p.to_h, attribute_p.parent_id_i, attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s"
                                                                    Hash Cond: (attribute_p.id_i = attribute_d_1.id_i)
                                                                    ->  Seq Scan on public.attribute_p  (cost=0.00..1308.66 rows=50566 width=264) (actual time=0.011..7.849 rows=50566 loops=1)
                                                                          Output: attribute_p.id_i, attribute_p.parent_id_i, attribute_p.path_i, attribute_p.type_i, attribute_p.name_s, attribute_p."columnType_s", attribute_p."dataType_s", attribute_p.comment_s, attribute_p.description_s, attribute_p.supported_s, attribute_p.order_s, attribute_p.label_s, attribute_p."isEngine_s", attribute_p.length_s, attribute_p.partition_s, attribute_p."partitionOrder_s", attribute_p."columnSize_s", attribute_p."fractionalDigits_s", attribute_p."columnTypeNumber_s", attribute_p."primaryKey_s", attribute_p."foreignKey_s", attribute_p.nullable_s, attribute_p."entityType_s", attribute_p."entityName_s", attribute_p.from_h, attribute_p.to_h
                                                                          Filter: (attribute_p.to_h IS NULL)
                                                                    ->  Hash  (cost=10.80..10.80 rows=80 width=16) (actual time=0.001..0.002 rows=0 loops=1)
                                                                          Output: attribute_d_1.id_i
                                                                          Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                          ->  Seq Scan on public.attribute_d attribute_d_1  (cost=0.00..10.80 rows=80 width=16) (actual time=0.001..0.001 rows=0 loops=1)
                                                                                Output: attribute_d_1.id_i
                                                              ->  Hash  (cost=1012.81..1012.81 rows=57281 width=32) (actual time=10.874..10.874 rows=57281 loops=1)
                                                                    Output: f0.id, f0.author, f0."timestamp"
                                                                    Buckets: 65536  Batches: 1  Memory Usage: 4228kB
                                                                    ->  Seq Scan on public."_HistoryChange" f0  (cost=0.00..1012.81 rows=57281 width=32) (actual time=0.006..4.925 rows=57281 loops=1)
                                                                          Output: f0.id, f0.author, f0."timestamp"
                                                        ->  Parallel Seq Scan on public.attribute_d  (cost=0.00..10.47 rows=47 width=2225) (actual time=0.001..0.001 rows=0 loops=1)
                                                              Output: attribute_d.path_i, attribute_d.type_i, attribute_d.id_i, NULL::bigint, NULL::bigint, true, attribute_d.parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::character varying, NULL::boolean, NULL::integer, NULL::character varying, NULL::boolean, NULL::integer, NULL::boolean, NULL::integer, NULL::integer, NULL::integer, NULL::character varying, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying, NULL::character varying, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, attribute_d.id_i, attribute_d.parent_id_i, attribute_d.path_i, attribute_d.type_i, attribute_d.name_s, attribute_d."columnType_s", attribute_d."dataType_s", attribute_d.comment_s, attribute_d.description_s, attribute_d.supported_s, attribute_d.order_s, attribute_d.label_s, attribute_d."isEngine_s", attribute_d.length_s, attribute_d.partition_s, attribute_d."partitionOrder_s", attribute_d."columnSize_s", attribute_d."fractionalDigits_s", attribute_d."columnTypeNumber_s", attribute_d."primaryKey_s", attribute_d."foreignKey_s", attribute_d.nullable_s, attribute_d."entityType_s", attribute_d."entityName_s", attribute_d.change_type_d, attribute_d.author_d, attribute_d.timestamp_d, attribute_d.name_s, attribute_d."columnType_s", attribute_d."dataType_s", attribute_d.comment_s, attribute_d.description_s, attribute_d.supported_s, attribute_d.order_s, attribute_d.label_s, attribute_d."isEngine_s", attribute_d.length_s, attribute_d.partition_s, attribute_d."partitionOrder_s", attribute_d."columnSize_s", attribute_d."fractionalDigits_s", attribute_d."columnTypeNumber_s", attribute_d."primaryKey_s", attribute_d."foreignKey_s", attribute_d.nullable_s, attribute_d."entityType_s", attribute_d."entityName_s", attribute_d.parent_id_i, attribute_d.id_i, attribute_d.path_i
                                ->  Materialize  (cost=137591.34..141223.47 rows=726427 width=96) (actual time=144.464..147.092 rows=11291 loops=1)
                                      Output: "dqEvalAggr_d"."recordCount_s", "dqEvalAggr_d".parent_id_i, "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult.color_s
                                      ->  Sort  (cost=137591.34..139407.41 rows=726427 width=96) (actual time=144.460..145.475 rows=11291 loops=1)
                                            Output: "dqEvalAggr_d"."recordCount_s", "dqEvalAggr_d".parent_id_i, "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult.color_s
                                            Sort Key: "dqEvalAggr_d".parent_id_i
                                            Sort Method: quicksort  Memory: 1872kB
                                            ->  Merge Left Join  (cost=18672.21..29625.00 rows=726427 width=96) (actual time=135.821..139.625 rows=11291 loops=1)
                                                  Output: "dqEvalAggr_d"."recordCount_s", "dqEvalAggr_d".parent_id_i, "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult.color_s
                                                  Merge Cond: ("dqEvalAggr_d".id_i = "dqEvalDimensionAggr_d".parent_id_i)
                                                  ->  Sort  (cost=515.83..525.23 rows=3759 width=1415) (actual time=3.764..4.194 rows=3759 loops=1)
                                                        Output: NULL::integer, NULL::integer, "dqEvalAggr_d".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalAggr_d".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalAggr_d"."recordCount_s", NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                        Sort Key: "dqEvalAggr_d".id_i
                                                        Sort Method: quicksort  Memory: 390kB
                                                        ->  Result  (cost=0.00..292.62 rows=3759 width=1415) (actual time=0.030..2.195 rows=3759 loops=1)
                                                              Output: NULL::integer, NULL::integer, "dqEvalAggr_d".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalAggr_d".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalAggr_d"."recordCount_s", NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                              ->  Append  (cost=0.00..255.03 rows=3759 width=36) (actual time=0.027..1.699 rows=3759 loops=1)
                                                                    ->  Seq Scan on public."dqEvalAggr_d"  (cost=0.00..11.20 rows=120 width=36) (actual time=0.004..0.004 rows=0 loops=1)
                                                                          Output: "dqEvalAggr_d".id_i, "dqEvalAggr_d".parent_id_i, "dqEvalAggr_d"."recordCount_s"
                                                                    ->  Subquery Scan on "*SELECT* 2_3"  (cost=12.70..225.03 rows=3639 width=36) (actual time=0.022..1.483 rows=3759 loops=1)
                                                                          Output: "*SELECT* 2_3".id0, "*SELECT* 2_3"."parentId0", "*SELECT* 2_3"."recordCount_s"
                                                                          ->  Hash Anti Join  (cost=12.70..188.64 rows=3639 width=1415) (actual time=0.020..1.178 rows=3759 loops=1)
                                                                                Output: NULL::integer, NULL::integer, "dqEvalAggr_p".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalAggr_p".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalAggr_p"."recordCount_s", NULL::integer, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                Hash Cond: ("dqEvalAggr_p".id_i = "dqEvalAggr_d_1".id_i)
                                                                                ->  Seq Scan on public."dqEvalAggr_p"  (cost=0.00..129.55 rows=3759 width=44) (actual time=0.009..0.534 rows=3759 loops=1)
                                                                                      Output: "dqEvalAggr_p".id_i, "dqEvalAggr_p".parent_id_i, "dqEvalAggr_p".path_i, "dqEvalAggr_p".type_i, "dqEvalAggr_p"."recordCount_s", "dqEvalAggr_p"."ruleCount_s", "dqEvalAggr_p"."sourceCount_s", "dqEvalAggr_p"."catalogItemCount_s", "dqEvalAggr_p"."attributeCount_s", "dqEvalAggr_p".job_ri, "dqEvalAggr_p".job_rh, "dqEvalAggr_p".from_h, "dqEvalAggr_p".to_h
                                                                                      Filter: ("dqEvalAggr_p".to_h IS NULL)
                                                                                      Rows Removed by Filter: 1296
                                                                                ->  Hash  (cost=11.20..11.20 rows=120 width=16) (actual time=0.001..0.002 rows=0 loops=1)
                                                                                      Output: "dqEvalAggr_d_1".id_i
                                                                                      Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                      ->  Seq Scan on public."dqEvalAggr_d" "dqEvalAggr_d_1"  (cost=0.00..11.20 rows=120 width=16) (actual time=0.001..0.001 rows=0 loops=1)
                                                                                            Output: "dqEvalAggr_d_1".id_i
                                                  ->  Sort  (cost=18156.39..18253.01 rows=38650 width=92) (actual time=132.044..132.792 rows=11293 loops=1)
                                                        Output: "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggr_d".parent_id_i, "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult.color_s
                                                        Sort Key: "dqEvalDimensionAggr_d".parent_id_i
                                                        Sort Method: quicksort  Memory: 1637kB
                                                        ->  Merge Right Join  (cost=14147.23..15211.61 rows=38650 width=92) (actual time=110.139..126.911 rows=11293 loops=1)
                                                              Output: "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggr_d".parent_id_i, "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s, "dqEvalDimensionAggrResult_d"."resultCount_s", dqresult.color_s
                                                              Merge Cond: ("dqEvalDimensionAggrResult_d".parent_id_i = "dqEvalDimensionAggr_d".id_i)
                                                              ->  Sort  (cost=6276.45..6277.37 rows=370 width=40) (actual time=48.238..49.963 rows=15774 loops=1)
                                                                    Output: "dqEvalDimensionAggrResult_d"."resultCount_s", "dqEvalDimensionAggrResult_d".parent_id_i, dqresult.color_s
                                                                    Sort Key: "dqEvalDimensionAggrResult_d".parent_id_i
                                                                    Sort Method: quicksort  Memory: 1617kB
                                                                    ->  Hash Join  (cost=4869.82..6260.67 rows=370 width=40) (actual time=25.552..42.790 rows=15774 loops=1)
                                                                          Output: "dqEvalDimensionAggrResult_d"."resultCount_s", "dqEvalDimensionAggrResult_d".parent_id_i, dqresult.color_s
                                                                          Hash Cond: ("dqEvalDimensionAggrResult_d".result_ri = dqresult.id0)
                                                                          ->  Result  (cost=4844.74..5722.99 rows=37011 width=1367) (actual time=25.506..38.168 rows=36900 loops=1)
                                                                                Output: NULL::integer, NULL::integer, "dqEvalDimensionAggrResult_d".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalDimensionAggrResult_d".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggrResult_d"."resultCount_s", "dqEvalDimensionAggrResult_d".result_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                ->  Merge Append  (cost=4844.74..5352.88 rows=37011 width=52) (actual time=25.495..31.729 rows=36900 loops=1)
                                                                                      Sort Key: "dqEvalDimensionAggrResult_d".id_i
                                                                                      ->  Index Scan using pk_48dc71aa48d74d41b1cfe95b22831fd5 on public."dqEvalDimensionAggrResult_d"  (cost=0.14..45.94 rows=120 width=52) (actual time=0.006..0.006 rows=0 loops=1)
                                                                                            Output: "dqEvalDimensionAggrResult_d".id_i, "dqEvalDimensionAggrResult_d".parent_id_i, "dqEvalDimensionAggrResult_d"."resultCount_s", "dqEvalDimensionAggrResult_d".result_ri
                                                                                      ->  Sort  (cost=4844.59..4936.81 rows=36891 width=52) (actual time=25.488..29.441 rows=36900 loops=1)
                                                                                            Output: "*SELECT* 2_4".id0, "*SELECT* 2_4"."parentId0", "*SELECT* 2_4"."resultCount_s", "*SELECT* 2_4".result_ri
                                                                                            Sort Key: "*SELECT* 2_4".id0
                                                                                            Sort Method: quicksort  Memory: 6726kB
                                                                                            ->  Subquery Scan on "*SELECT* 2_4"  (cost=12.70..2046.22 rows=36891 width=52) (actual time=0.019..13.117 rows=36900 loops=1)
                                                                                                  Output: "*SELECT* 2_4".id0, "*SELECT* 2_4"."parentId0", "*SELECT* 2_4"."resultCount_s", "*SELECT* 2_4".result_ri
                                                                                                  ->  Hash Anti Join  (cost=12.70..1677.31 rows=36891 width=1367) (actual time=0.018..10.410 rows=36900 loops=1)
                                                                                                        Output: NULL::integer, NULL::integer, "dqEvalDimensionAggrResult_p".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalDimensionAggrResult_p".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggrResult_p"."resultCount_s", "dqEvalDimensionAggrResult_p".result_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                        Hash Cond: ("dqEvalDimensionAggrResult_p".id_i = "dqEvalDimensionAggrResult_d_1".id_i)
                                                                                                        ->  Seq Scan on public."dqEvalDimensionAggrResult_p"  (cost=0.00..1198.38 rows=37020 width=60) (actual time=0.008..4.773 rows=36900 loops=1)
                                                                                                              Output: "dqEvalDimensionAggrResult_p".id_i, "dqEvalDimensionAggrResult_p".parent_id_i, "dqEvalDimensionAggrResult_p".path_i, "dqEvalDimensionAggrResult_p".type_i, "dqEvalDimensionAggrResult_p"."resultCount_s", "dqEvalDimensionAggrResult_p".result_ri, "dqEvalDimensionAggrResult_p".result_rh, "dqEvalDimensionAggrResult_p".from_h, "dqEvalDimensionAggrResult_p".to_h
                                                                                                              Filter: ("dqEvalDimensionAggrResult_p".to_h IS NULL)
                                                                                                              Rows Removed by Filter: 12438
                                                                                                        ->  Hash  (cost=11.20..11.20 rows=120 width=16) (actual time=0.002..0.003 rows=0 loops=1)
                                                                                                              Output: "dqEvalDimensionAggrResult_d_1".id_i
                                                                                                              Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                                              ->  Seq Scan on public."dqEvalDimensionAggrResult_d" "dqEvalDimensionAggrResult_d_1"  (cost=0.00..11.20 rows=120 width=16) (actual time=0.002..0.002 rows=0 loops=1)
                                                                                                                    Output: "dqEvalDimensionAggrResult_d_1".id_i
                                                                          ->  Hash  (cost=25.05..25.05 rows=2 width=36) (actual time=0.036..0.041 rows=1 loops=1)
                                                                                Output: dqresult.color_s, dqresult.id0
                                                                                Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                ->  Subquery Scan on dqresult  (cost=25.03..25.05 rows=2 width=36) (actual time=0.033..0.037 rows=1 loops=1)
                                                                                      Output: dqresult.color_s, dqresult.id0
                                                                                      ->  Sort  (cost=25.03..25.03 rows=2 width=1484) (actual time=0.031..0.035 rows=1 loops=1)
                                                                                            Output: NULL::integer, NULL::integer, "dqDimensionResult_d".id_i, NULL::bigint, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, "dqDimensionResult_d".color_s, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::uuid, NULL::uuid, NULL::integer
                                                                                            Sort Key: "dqDimensionResult_d".id_i
                                                                                            Sort Method: quicksort  Memory: 25kB
                                                                                            ->  Result  (cost=0.00..25.02 rows=2 width=1484) (actual time=0.027..0.031 rows=1 loops=1)
                                                                                                  Output: NULL::integer, NULL::integer, "dqDimensionResult_d".id_i, NULL::bigint, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, "dqDimensionResult_d".color_s, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                  ->  Append  (cost=0.00..25.00 rows=2 width=36) (actual time=0.024..0.028 rows=1 loops=1)
                                                                                                        ->  Seq Scan on public."dqDimensionResult_d"  (cost=0.00..11.38 rows=1 width=48) (actual time=0.002..0.003 rows=0 loops=1)
                                                                                                              Output: "dqDimensionResult_d".id_i, "dqDimensionResult_d".color_s
                                                                                                              Filter: (("dqDimensionResult_d".name_s)::text = 'Valid'::text)
                                                                                                        ->  Subquery Scan on "*SELECT* 2_5"  (cost=12.47..13.61 rows=1 width=24) (actual time=0.021..0.024 rows=1 loops=1)
                                                                                                              Output: "*SELECT* 2_5".id0, "*SELECT* 2_5".color_s
                                                                                                              ->  Hash Anti Join  (cost=12.47..13.60 rows=1 width=1472) (actual time=0.019..0.022 rows=1 loops=1)
                                                                                                                    Output: NULL::integer, NULL::integer, "dqDimensionResult_p".id_i, NULL::bigint, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, "dqDimensionResult_p".color_s, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                                    Hash Cond: ("dqDimensionResult_p".id_i = "dqDimensionResult_d_1".id_i)
                                                                                                                    ->  Seq Scan on public."dqDimensionResult_p"  (cost=0.00..1.12 rows=1 width=32) (actual time=0.011..0.012 rows=1 loops=1)
                                                                                                                          Output: "dqDimensionResult_p".id_i, "dqDimensionResult_p".parent_id_i, "dqDimensionResult_p".path_i, "dqDimensionResult_p".type_i, "dqDimensionResult_p".name_s, "dqDimensionResult_p".color_s, "dqDimensionResult_p".order_s, "dqDimensionResult_p"."mainResult_s", "dqDimensionResult_p"."defaultConditionResult_s", "dqDimensionResult_p"."defaultFallbackResult_s", "dqDimensionResult_p".from_h, "dqDimensionResult_p".to_h
                                                                                                                          Filter: (("dqDimensionResult_p".to_h IS NULL) AND (("dqDimensionResult_p".name_s)::text = 'Valid'::text))
                                                                                                                          Rows Removed by Filter: 9
                                                                                                                    ->  Hash  (cost=11.10..11.10 rows=110 width=16) (actual time=0.002..0.002 rows=0 loops=1)
                                                                                                                          Output: "dqDimensionResult_d_1".id_i
                                                                                                                          Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                                                          ->  Seq Scan on public."dqDimensionResult_d" "dqDimensionResult_d_1"  (cost=0.00..11.10 rows=110 width=16) (actual time=0.001..0.001 rows=0 loops=1)
                                                                                                                                Output: "dqDimensionResult_d_1".id_i
                                                              ->  Materialize  (cost=7870.78..8405.79 rows=20892 width=84) (actual time=61.889..72.502 rows=11293 loops=1)
                                                                    Output: "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggr_d".parent_id_i, "dqEvalDimensionAggr_d".id_i, "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s
                                                                    ->  Merge Left Join  (cost=7870.78..8353.56 rows=20892 width=84) (actual time=61.883..69.274 rows=11293 loops=1)
                                                                          Output: "dqEvalDimensionAggr_d".term_ri, "dqEvalDimensionAggr_d"."ruleCount_s", (NULL::bigint), "dqEvalDimensionAggr_d".parent_id_i, "dqEvalDimensionAggr_d".id_i, "dqEvalDimensionAggrResult_d_2"."resultCount_s", dqresult_1.color_s
                                                                          Merge Cond: ("dqEvalDimensionAggr_d".id_i = "dqEvalDimensionAggrResult_d_2".parent_id_i)
                                                                          ->  Sort  (cost=1594.33..1622.57 rows=11293 width=1439) (actual time=11.518..12.907 rows=11293 loops=1)
                                                                                Output: NULL::integer, NULL::integer, "dqEvalDimensionAggr_d".id_i, (NULL::bigint), NULL::bigint, NULL::boolean, "dqEvalDimensionAggr_d".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::integer, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::integer, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggr_d"."ruleCount_s", NULL::uuid, NULL::bigint, "dqEvalDimensionAggr_d".term_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                Sort Key: "dqEvalDimensionAggr_d".id_i
                                                                                Sort Method: quicksort  Memory: 1637kB
                                                                                ->  Result  (cost=0.00..834.14 rows=11293 width=1439) (actual time=0.028..6.380 rows=11293 loops=1)
                                                                                      Output: NULL::integer, NULL::integer, "dqEvalDimensionAggr_d".id_i, (NULL::bigint), NULL::bigint, NULL::boolean, "dqEvalDimensionAggr_d".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::integer, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::integer, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggr_d"."ruleCount_s", NULL::uuid, NULL::bigint, "dqEvalDimensionAggr_d".term_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                      ->  Append  (cost=0.00..721.21 rows=11293 width=60) (actual time=0.026..5.025 rows=11293 loops=1)
                                                                                            ->  Seq Scan on public."dqEvalDimensionAggr_d"  (cost=0.00..11.10 rows=110 width=60) (actual time=0.004..0.004 rows=0 loops=1)
                                                                                                  Output: "dqEvalDimensionAggr_d".id_i, NULL::bigint, "dqEvalDimensionAggr_d".parent_id_i, "dqEvalDimensionAggr_d"."ruleCount_s", "dqEvalDimensionAggr_d".term_ri
                                                                                            ->  Subquery Scan on "*SELECT* 2_6"  (cost=12.47..653.64 rows=11183 width=60) (actual time=0.021..4.372 rows=11293 loops=1)
                                                                                                  Output: "*SELECT* 2_6".id0, "*SELECT* 2_6".from0, "*SELECT* 2_6"."parentId0", "*SELECT* 2_6"."ruleCount_s", "*SELECT* 2_6".term_ri
                                                                                                  ->  Hash Anti Join  (cost=12.47..541.81 rows=11183 width=1439) (actual time=0.019..3.504 rows=11293 loops=1)
                                                                                                        Output: NULL::integer, NULL::integer, "dqEvalDimensionAggr_p".id_i, "dqEvalDimensionAggr_p".from_h, NULL::bigint, NULL::boolean, "dqEvalDimensionAggr_p".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::integer, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::uuid, NULL::bigint, NULL::integer, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggr_p"."ruleCount_s", NULL::uuid, NULL::bigint, "dqEvalDimensionAggr_p".term_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                        Hash Cond: ("dqEvalDimensionAggr_p".id_i = "dqEvalDimensionAggr_d_1".id_i)
                                                                                                        ->  Seq Scan on public."dqEvalDimensionAggr_p"  (cost=0.00..387.74 rows=11293 width=60) (actual time=0.007..1.619 rows=11293 loops=1)
                                                                                                              Output: "dqEvalDimensionAggr_p".id_i, "dqEvalDimensionAggr_p".parent_id_i, "dqEvalDimensionAggr_p".path_i, "dqEvalDimensionAggr_p".type_i, "dqEvalDimensionAggr_p"."dqDimension_ri", "dqEvalDimensionAggr_p"."dqDimension_rh", "dqEvalDimensionAggr_p".term_ri, "dqEvalDimensionAggr_p".term_rh, "dqEvalDimensionAggr_p"."ruleCount_s", "dqEvalDimensionAggr_p".from_h, "dqEvalDimensionAggr_p".to_h
                                                                                                              Filter: ("dqEvalDimensionAggr_p".to_h IS NULL)
                                                                                                              Rows Removed by Filter: 3881
                                                                                                        ->  Hash  (cost=11.10..11.10 rows=110 width=16) (actual time=0.001..0.002 rows=0 loops=1)
                                                                                                              Output: "dqEvalDimensionAggr_d_1".id_i
                                                                                                              Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                                              ->  Seq Scan on public."dqEvalDimensionAggr_d" "dqEvalDimensionAggr_d_1"  (cost=0.00..11.10 rows=110 width=16) (actual time=0.001..0.001 rows=0 loops=1)
                                                                                                                    Output: "dqEvalDimensionAggr_d_1".id_i
                                                                          ->  Sort  (cost=6276.45..6277.37 rows=370 width=40) (actual time=50.350..51.511 rows=15774 loops=1)
                                                                                Output: "dqEvalDimensionAggrResult_d_2"."resultCount_s", "dqEvalDimensionAggrResult_d_2".parent_id_i, dqresult_1.color_s
                                                                                Sort Key: "dqEvalDimensionAggrResult_d_2".parent_id_i
                                                                                Sort Method: quicksort  Memory: 1617kB
                                                                                ->  Hash Join  (cost=4869.82..6260.67 rows=370 width=40) (actual time=27.761..44.832 rows=15774 loops=1)
                                                                                      Output: "dqEvalDimensionAggrResult_d_2"."resultCount_s", "dqEvalDimensionAggrResult_d_2".parent_id_i, dqresult_1.color_s
                                                                                      Hash Cond: ("dqEvalDimensionAggrResult_d_2".result_ri = dqresult_1.id0)
                                                                                      ->  Result  (cost=4844.74..5722.99 rows=37011 width=1367) (actual time=27.715..40.323 rows=36900 loops=1)
                                                                                            Output: NULL::integer, NULL::integer, "dqEvalDimensionAggrResult_d_2".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalDimensionAggrResult_d_2".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggrResult_d_2"."resultCount_s", "dqEvalDimensionAggrResult_d_2".result_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                            ->  Merge Append  (cost=4844.74..5352.88 rows=37011 width=52) (actual time=27.709..33.972 rows=36900 loops=1)
                                                                                                  Sort Key: "dqEvalDimensionAggrResult_d_2".id_i
                                                                                                  ->  Index Scan using pk_48dc71aa48d74d41b1cfe95b22831fd5 on public."dqEvalDimensionAggrResult_d" "dqEvalDimensionAggrResult_d_2"  (cost=0.14..45.94 rows=120 width=52) (actual time=0.009..0.010 rows=0 loops=1)
                                                                                                        Output: "dqEvalDimensionAggrResult_d_2".id_i, "dqEvalDimensionAggrResult_d_2".parent_id_i, "dqEvalDimensionAggrResult_d_2"."resultCount_s", "dqEvalDimensionAggrResult_d_2".result_ri
                                                                                                  ->  Sort  (cost=4844.59..4936.81 rows=36891 width=52) (actual time=27.698..31.506 rows=36900 loops=1)
                                                                                                        Output: "*SELECT* 2_7".id0, "*SELECT* 2_7"."parentId0", "*SELECT* 2_7"."resultCount_s", "*SELECT* 2_7".result_ri
                                                                                                        Sort Key: "*SELECT* 2_7".id0
                                                                                                        Sort Method: quicksort  Memory: 6726kB
                                                                                                        ->  Subquery Scan on "*SELECT* 2_7"  (cost=12.70..2046.22 rows=36891 width=52) (actual time=0.015..13.158 rows=36900 loops=1)
                                                                                                              Output: "*SELECT* 2_7".id0, "*SELECT* 2_7"."parentId0", "*SELECT* 2_7"."resultCount_s", "*SELECT* 2_7".result_ri
                                                                                                              ->  Hash Anti Join  (cost=12.70..1677.31 rows=36891 width=1367) (actual time=0.013..10.367 rows=36900 loops=1)
                                                                                                                    Output: NULL::integer, NULL::integer, "dqEvalDimensionAggrResult_p_1".id_i, NULL::bigint, NULL::bigint, NULL::boolean, "dqEvalDimensionAggrResult_p_1".parent_id_i, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::integer, NULL::uuid, NULL::bigint, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, "dqEvalDimensionAggrResult_p_1"."resultCount_s", "dqEvalDimensionAggrResult_p_1".result_ri, NULL::bigint, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                                    Hash Cond: ("dqEvalDimensionAggrResult_p_1".id_i = "dqEvalDimensionAggrResult_d_3".id_i)
                                                                                                                    ->  Seq Scan on public."dqEvalDimensionAggrResult_p" "dqEvalDimensionAggrResult_p_1"  (cost=0.00..1198.38 rows=37020 width=60) (actual time=0.005..4.670 rows=36900 loops=1)
                                                                                                                          Output: "dqEvalDimensionAggrResult_p_1".id_i, "dqEvalDimensionAggrResult_p_1".parent_id_i, "dqEvalDimensionAggrResult_p_1".path_i, "dqEvalDimensionAggrResult_p_1".type_i, "dqEvalDimensionAggrResult_p_1"."resultCount_s", "dqEvalDimensionAggrResult_p_1".result_ri, "dqEvalDimensionAggrResult_p_1".result_rh, "dqEvalDimensionAggrResult_p_1".from_h, "dqEvalDimensionAggrResult_p_1".to_h
                                                                                                                          Filter: ("dqEvalDimensionAggrResult_p_1".to_h IS NULL)
                                                                                                                          Rows Removed by Filter: 12438
                                                                                                                    ->  Hash  (cost=11.20..11.20 rows=120 width=16) (actual time=0.002..0.002 rows=0 loops=1)
                                                                                                                          Output: "dqEvalDimensionAggrResult_d_3".id_i
                                                                                                                          Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                                                          ->  Seq Scan on public."dqEvalDimensionAggrResult_d" "dqEvalDimensionAggrResult_d_3"  (cost=0.00..11.20 rows=120 width=16) (actual time=0.002..0.002 rows=0 loops=1)
                                                                                                                                Output: "dqEvalDimensionAggrResult_d_3".id_i
                                                                                      ->  Hash  (cost=25.05..25.05 rows=2 width=36) (actual time=0.035..0.040 rows=1 loops=1)
                                                                                            Output: dqresult_1.color_s, dqresult_1.id0
                                                                                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                                                            ->  Subquery Scan on dqresult_1  (cost=25.03..25.05 rows=2 width=36) (actual time=0.031..0.036 rows=1 loops=1)
                                                                                                  Output: dqresult_1.color_s, dqresult_1.id0
                                                                                                  ->  Sort  (cost=25.03..25.03 rows=2 width=1484) (actual time=0.029..0.033 rows=1 loops=1)
                                                                                                        Output: NULL::integer, NULL::integer, "dqDimensionResult_d_2".id_i, NULL::bigint, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, "dqDimensionResult_d_2".color_s, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                        Sort Key: "dqDimensionResult_d_2".id_i
                                                                                                        Sort Method: quicksort  Memory: 25kB
                                                                                                        ->  Result  (cost=0.00..25.02 rows=2 width=1484) (actual time=0.025..0.029 rows=1 loops=1)
                                                                                                              Output: NULL::integer, NULL::integer, "dqDimensionResult_d_2".id_i, NULL::bigint, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, "dqDimensionResult_d_2".color_s, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                              ->  Append  (cost=0.00..25.00 rows=2 width=36) (actual time=0.022..0.026 rows=1 loops=1)
                                                                                                                    ->  Seq Scan on public."dqDimensionResult_d" "dqDimensionResult_d_2"  (cost=0.00..11.38 rows=1 width=48) (actual time=0.002..0.003 rows=0 loops=1)
                                                                                                                          Output: "dqDimensionResult_d_2".id_i, "dqDimensionResult_d_2".color_s
                                                                                                                          Filter: (("dqDimensionResult_d_2".name_s)::text = 'Invalid'::text)
                                                                                                                    ->  Subquery Scan on "*SELECT* 2_8"  (cost=12.47..13.61 rows=1 width=24) (actual time=0.019..0.022 rows=1 loops=1)
                                                                                                                          Output: "*SELECT* 2_8".id0, "*SELECT* 2_8".color_s
                                                                                                                          ->  Hash Anti Join  (cost=12.47..13.60 rows=1 width=1472) (actual time=0.018..0.021 rows=1 loops=1)
                                                                                                                                Output: NULL::integer, NULL::integer, "dqDimensionResult_p_1".id_i, NULL::bigint, NULL::bigint, NULL::boolean, NULL::uuid, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::bigint, NULL::bigint, NULL::bigint, NULL::character varying(255), NULL::timestamp with time zone, NULL::uuid, NULL::uuid, NULL::integer, NULL::integer, NULL::character varying, NULL::character varying, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::character varying(10), NULL::character varying(255), NULL::timestamp with time zone, NULL::character varying, "dqDimensionResult_p_1".color_s, NULL::integer, NULL::boolean, NULL::boolean, NULL::boolean, NULL::uuid, NULL::uuid, NULL::integer
                                                                                                                                Hash Cond: ("dqDimensionResult_p_1".id_i = "dqDimensionResult_d_3".id_i)
                                                                                                                                ->  Seq Scan on public."dqDimensionResult_p" "dqDimensionResult_p_1"  (cost=0.00..1.12 rows=1 width=32) (actual time=0.006..0.007 rows=1 loops=1)
                                                                                                                                      Output: "dqDimensionResult_p_1".id_i, "dqDimensionResult_p_1".parent_id_i, "dqDimensionResult_p_1".path_i, "dqDimensionResult_p_1".type_i, "dqDimensionResult_p_1".name_s, "dqDimensionResult_p_1".color_s, "dqDimensionResult_p_1".order_s, "dqDimensionResult_p_1"."mainResult_s", "dqDimensionResult_p_1"."defaultConditionResult_s", "dqDimensionResult_p_1"."defaultFallbackResult_s", "dqDimensionResult_p_1".from_h, "dqDimensionResult_p_1".to_h
                                                                                                                                      Filter: (("dqDimensionResult_p_1".to_h IS NULL) AND (("dqDimensionResult_p_1".name_s)::text = 'Invalid'::text))
                                                                                                                                      Rows Removed by Filter: 9
                                                                                                                                ->  Hash  (cost=11.10..11.10 rows=110 width=16) (actual time=0.002..0.002 rows=0 loops=1)
                                                                                                                                      Output: "dqDimensionResult_d_3".id_i
                                                                                                                                      Buckets: 1024  Batches: 1  Memory Usage: 8kB
                                                                                                                                      ->  Seq Scan on public."dqDimensionResult_d" "dqDimensionResult_d_3"  (cost=0.00..11.10 rows=110 width=16) (actual time=0.001..0.001 rows=0 loops=1)
                                                                                                                                            Output: "dqDimensionResult_d_3".id_i
Planning Time: 24.717 ms
JIT:
  Functions: 416
  Options: Inlining true, Optimization true, Expressions true, Deforming true
  Timing: Generation 61.002 ms, Inlining 67.897 ms, Optimization 2853.125 ms, Emission 2116.233 ms, Total 5098.258 ms
Execution Time: 5553.191 ms
