

======================================================================
 QUERY FILE: 10 (10.sql)
 TIMESTAMP:  Mon Dec 15 19:00:48 CST 2025
======================================================================

--- [ CONFIG: dp ] ----------------------------------------
Limit  (cost=255291.82..255291.87 rows=20 width=202) (actual time=1056.849..1056.853 rows=20.00 loops=1)
  Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
  Buffers: shared hit=3 read=142275
  ->  Sort  (cost=255291.82..255436.66 rows=57936 width=202) (actual time=1056.849..1056.852 rows=20.00 loops=1)
        Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
        Sort Key: (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))) DESC
        Sort Method: top-N heapsort  Memory: 34kB
        Buffers: shared hit=3 read=142275
        ->  HashAggregate  (cost=253025.96..253750.16 rows=57936 width=202) (actual time=1039.141..1051.091 rows=37857.00 loops=1)
              Output: customer.c_custkey, customer.c_name, sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
              Group Key: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment
              Batches: 1  Memory Usage: 25617kB
              Buffers: shared read=142275
              ->  Hash Join  (cost=56336.12..251577.56 rows=57936 width=182) (actual time=227.022..968.647 rows=114326.00 loops=1)
                    Output: customer.c_custkey, customer.c_name, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment, lineitem.l_extendedprice, lineitem.l_discount
                    Hash Cond: (customer.c_nationkey = nation.n_nationkey)
                    Buffers: shared read=142275
                    ->  Hash Join  (cost=56334.56..250779.38 rows=57936 width=160) (actual time=226.637..955.897 rows=114326.00 loops=1)
                          Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey, lineitem.l_extendedprice, lineitem.l_discount
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared read=142274
                          ->  Hash Join  (cost=49365.56..243013.76 rows=57936 width=16) (actual time=184.055..878.103 rows=114326.00 loops=1)
                                Output: orders.o_custkey, lineitem.l_extendedprice, lineitem.l_discount
                                Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                                Buffers: shared read=138680
                                ->  Seq Scan on public.lineitem  (cost=0.00..187568.12 rows=1466857 width=16) (actual time=0.308..527.137 rows=1478870.00 loops=1)
                                      Output: lineitem.l_orderkey, lineitem.l_partkey, lineitem.l_suppkey, lineitem.l_linenumber, lineitem.l_quantity, lineitem.l_extendedprice, lineitem.l_discount, lineitem.l_tax, lineitem.l_returnflag, lineitem.l_linestatus, lineitem.l_shipdate, lineitem.l_commitdate, lineitem.l_receiptdate, lineitem.l_shipinstruct, lineitem.l_shipmode, lineitem.l_comment
                                      Filter: (lineitem.l_returnflag = 'R'::bpchar)
                                      Rows Removed by Filter: 4522345
                                      Buffers: shared read=112555
                                ->  Hash  (cost=48625.00..48625.00 rows=59245 width=8) (actual time=183.658..183.658 rows=57280.00 loops=1)
                                      Output: orders.o_custkey, orders.o_orderkey
                                      Buckets: 65536  Batches: 1  Memory Usage: 2750kB
                                      Buffers: shared read=26125
                                      ->  Seq Scan on public.orders  (cost=0.00..48625.00 rows=59245 width=8) (actual time=0.144..175.408 rows=57280.00 loops=1)
                                            Output: orders.o_custkey, orders.o_orderkey
                                            Filter: ((orders.o_orderdate >= '1993-06-01'::date) AND (orders.o_orderdate < '1993-09-01 00:00:00'::timestamp without time zone))
                                            Rows Removed by Filter: 1442720
                                            Buffers: shared read=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=148) (actual time=42.355..42.355 rows=150000.00 loops=1)
                                Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                Buckets: 262144  Batches: 1  Memory Usage: 28861kB
                                Buffers: shared read=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=148) (actual time=0.289..15.164 rows=150000.00 loops=1)
                                      Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                      Buffers: shared read=3594
                    ->  Hash  (cost=1.25..1.25 rows=25 width=30) (actual time=0.378..0.378 rows=25.00 loops=1)
                          Output: nation.n_name, nation.n_nationkey
                          Buckets: 1024  Batches: 1  Memory Usage: 10kB
                          Buffers: shared read=1
                          ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=30) (actual time=0.344..0.346 rows=25.00 loops=1)
                                Output: nation.n_name, nation.n_nationkey
                                Buffers: shared read=1
Planning:
  Buffers: shared hit=223 read=2
Planning Time: 1.916 ms
Execution Time: 1059.283 ms

--- [ CONFIG: goo_rows ] ----------------------------------------
Limit  (cost=255291.82..255291.87 rows=20 width=202) (actual time=930.242..930.249 rows=20.00 loops=1)
  Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
  Buffers: shared hit=142278
  ->  Sort  (cost=255291.82..255436.66 rows=57936 width=202) (actual time=930.241..930.247 rows=20.00 loops=1)
        Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
        Sort Key: (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))) DESC
        Sort Method: top-N heapsort  Memory: 34kB
        Buffers: shared hit=142278
        ->  HashAggregate  (cost=253025.96..253750.16 rows=57936 width=202) (actual time=912.156..924.586 rows=37857.00 loops=1)
              Output: customer.c_custkey, customer.c_name, sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
              Group Key: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment
              Batches: 1  Memory Usage: 25617kB
              Buffers: shared hit=142275
              ->  Hash Join  (cost=56336.12..251577.56 rows=57936 width=182) (actual time=145.840..842.452 rows=114326.00 loops=1)
                    Output: customer.c_custkey, customer.c_name, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment, lineitem.l_extendedprice, lineitem.l_discount
                    Hash Cond: (customer.c_nationkey = nation.n_nationkey)
                    Buffers: shared hit=142275
                    ->  Hash Join  (cost=56334.56..250779.38 rows=57936 width=160) (actual time=145.824..831.252 rows=114326.00 loops=1)
                          Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey, lineitem.l_extendedprice, lineitem.l_discount
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=49365.56..243013.76 rows=57936 width=16) (actual time=108.989..761.028 rows=114326.00 loops=1)
                                Output: orders.o_custkey, lineitem.l_extendedprice, lineitem.l_discount
                                Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                                Buffers: shared hit=138680
                                ->  Seq Scan on public.lineitem  (cost=0.00..187568.12 rows=1466857 width=16) (actual time=0.017..504.955 rows=1478870.00 loops=1)
                                      Output: lineitem.l_orderkey, lineitem.l_partkey, lineitem.l_suppkey, lineitem.l_linenumber, lineitem.l_quantity, lineitem.l_extendedprice, lineitem.l_discount, lineitem.l_tax, lineitem.l_returnflag, lineitem.l_linestatus, lineitem.l_shipdate, lineitem.l_commitdate, lineitem.l_receiptdate, lineitem.l_shipinstruct, lineitem.l_shipmode, lineitem.l_comment
                                      Filter: (lineitem.l_returnflag = 'R'::bpchar)
                                      Rows Removed by Filter: 4522345
                                      Buffers: shared hit=112555
                                ->  Hash  (cost=48625.00..48625.00 rows=59245 width=8) (actual time=108.876..108.876 rows=57280.00 loops=1)
                                      Output: orders.o_custkey, orders.o_orderkey
                                      Buckets: 65536  Batches: 1  Memory Usage: 2750kB
                                      Buffers: shared hit=26125
                                      ->  Seq Scan on public.orders  (cost=0.00..48625.00 rows=59245 width=8) (actual time=0.008..103.243 rows=57280.00 loops=1)
                                            Output: orders.o_custkey, orders.o_orderkey
                                            Filter: ((orders.o_orderdate >= '1993-06-01'::date) AND (orders.o_orderdate < '1993-09-01 00:00:00'::timestamp without time zone))
                                            Rows Removed by Filter: 1442720
                                            Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=148) (actual time=36.613..36.613 rows=150000.00 loops=1)
                                Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                Buckets: 262144  Batches: 1  Memory Usage: 28861kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=148) (actual time=0.015..13.267 rows=150000.00 loops=1)
                                      Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                      Buffers: shared hit=3594
                    ->  Hash  (cost=1.25..1.25 rows=25 width=30) (actual time=0.010..0.010 rows=25.00 loops=1)
                          Output: nation.n_name, nation.n_nationkey
                          Buckets: 1024  Batches: 1  Memory Usage: 10kB
                          Buffers: shared hit=1
                          ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=30) (actual time=0.004..0.006 rows=25.00 loops=1)
                                Output: nation.n_name, nation.n_nationkey
                                Buffers: shared hit=1
Planning:
  Buffers: shared hit=225
Planning Time: 0.390 ms
Execution Time: 931.099 ms

--- [ CONFIG: goo_selectivity ] ----------------------------------------
Limit  (cost=255291.82..255291.87 rows=20 width=202) (actual time=894.526..894.534 rows=20.00 loops=1)
  Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
  Buffers: shared hit=142278
  ->  Sort  (cost=255291.82..255436.66 rows=57936 width=202) (actual time=894.524..894.532 rows=20.00 loops=1)
        Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
        Sort Key: (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))) DESC
        Sort Method: top-N heapsort  Memory: 34kB
        Buffers: shared hit=142278
        ->  HashAggregate  (cost=253025.96..253750.16 rows=57936 width=202) (actual time=878.171..888.989 rows=37857.00 loops=1)
              Output: customer.c_custkey, customer.c_name, sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
              Group Key: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment
              Batches: 1  Memory Usage: 25617kB
              Buffers: shared hit=142275
              ->  Hash Join  (cost=56336.12..251577.56 rows=57936 width=182) (actual time=152.244..812.454 rows=114326.00 loops=1)
                    Output: customer.c_custkey, customer.c_name, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment, lineitem.l_extendedprice, lineitem.l_discount
                    Hash Cond: (customer.c_nationkey = nation.n_nationkey)
                    Buffers: shared hit=142275
                    ->  Hash Join  (cost=56334.56..250779.38 rows=57936 width=160) (actual time=152.226..801.399 rows=114326.00 loops=1)
                          Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey, lineitem.l_extendedprice, lineitem.l_discount
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=49365.56..243013.76 rows=57936 width=16) (actual time=114.037..730.989 rows=114326.00 loops=1)
                                Output: orders.o_custkey, lineitem.l_extendedprice, lineitem.l_discount
                                Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                                Buffers: shared hit=138680
                                ->  Seq Scan on public.lineitem  (cost=0.00..187568.12 rows=1466857 width=16) (actual time=0.023..484.412 rows=1478870.00 loops=1)
                                      Output: lineitem.l_orderkey, lineitem.l_partkey, lineitem.l_suppkey, lineitem.l_linenumber, lineitem.l_quantity, lineitem.l_extendedprice, lineitem.l_discount, lineitem.l_tax, lineitem.l_returnflag, lineitem.l_linestatus, lineitem.l_shipdate, lineitem.l_commitdate, lineitem.l_receiptdate, lineitem.l_shipinstruct, lineitem.l_shipmode, lineitem.l_comment
                                      Filter: (lineitem.l_returnflag = 'R'::bpchar)
                                      Rows Removed by Filter: 4522345
                                      Buffers: shared hit=112555
                                ->  Hash  (cost=48625.00..48625.00 rows=59245 width=8) (actual time=113.940..113.940 rows=57280.00 loops=1)
                                      Output: orders.o_custkey, orders.o_orderkey
                                      Buckets: 65536  Batches: 1  Memory Usage: 2750kB
                                      Buffers: shared hit=26125
                                      ->  Seq Scan on public.orders  (cost=0.00..48625.00 rows=59245 width=8) (actual time=0.008..107.058 rows=57280.00 loops=1)
                                            Output: orders.o_custkey, orders.o_orderkey
                                            Filter: ((orders.o_orderdate >= '1993-06-01'::date) AND (orders.o_orderdate < '1993-09-01 00:00:00'::timestamp without time zone))
                                            Rows Removed by Filter: 1442720
                                            Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=148) (actual time=37.989..37.989 rows=150000.00 loops=1)
                                Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                Buckets: 262144  Batches: 1  Memory Usage: 28861kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=148) (actual time=0.005..13.324 rows=150000.00 loops=1)
                                      Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                      Buffers: shared hit=3594
                    ->  Hash  (cost=1.25..1.25 rows=25 width=30) (actual time=0.011..0.011 rows=25.00 loops=1)
                          Output: nation.n_name, nation.n_nationkey
                          Buckets: 1024  Batches: 1  Memory Usage: 10kB
                          Buffers: shared hit=1
                          ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=30) (actual time=0.005..0.007 rows=25.00 loops=1)
                                Output: nation.n_name, nation.n_nationkey
                                Buffers: shared hit=1
Planning:
  Buffers: shared hit=225
Planning Time: 0.420 ms
Execution Time: 895.475 ms

--- [ CONFIG: goo_result_size ] ----------------------------------------
Limit  (cost=255291.82..255291.87 rows=20 width=202) (actual time=899.691..899.697 rows=20.00 loops=1)
  Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
  Buffers: shared hit=142278
  ->  Sort  (cost=255291.82..255436.66 rows=57936 width=202) (actual time=899.690..899.695 rows=20.00 loops=1)
        Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
        Sort Key: (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))) DESC
        Sort Method: top-N heapsort  Memory: 34kB
        Buffers: shared hit=142278
        ->  HashAggregate  (cost=253025.96..253750.16 rows=57936 width=202) (actual time=882.041..894.021 rows=37857.00 loops=1)
              Output: customer.c_custkey, customer.c_name, sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
              Group Key: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment
              Batches: 1  Memory Usage: 25617kB
              Buffers: shared hit=142275
              ->  Hash Join  (cost=56336.12..251577.56 rows=57936 width=182) (actual time=147.758..816.753 rows=114326.00 loops=1)
                    Output: customer.c_custkey, customer.c_name, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment, lineitem.l_extendedprice, lineitem.l_discount
                    Hash Cond: (customer.c_nationkey = nation.n_nationkey)
                    Buffers: shared hit=142275
                    ->  Hash Join  (cost=56334.56..250779.38 rows=57936 width=160) (actual time=147.736..805.632 rows=114326.00 loops=1)
                          Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey, lineitem.l_extendedprice, lineitem.l_discount
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=49365.56..243013.76 rows=57936 width=16) (actual time=112.388..738.278 rows=114326.00 loops=1)
                                Output: orders.o_custkey, lineitem.l_extendedprice, lineitem.l_discount
                                Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                                Buffers: shared hit=138680
                                ->  Seq Scan on public.lineitem  (cost=0.00..187568.12 rows=1466857 width=16) (actual time=0.014..494.410 rows=1478870.00 loops=1)
                                      Output: lineitem.l_orderkey, lineitem.l_partkey, lineitem.l_suppkey, lineitem.l_linenumber, lineitem.l_quantity, lineitem.l_extendedprice, lineitem.l_discount, lineitem.l_tax, lineitem.l_returnflag, lineitem.l_linestatus, lineitem.l_shipdate, lineitem.l_commitdate, lineitem.l_receiptdate, lineitem.l_shipinstruct, lineitem.l_shipmode, lineitem.l_comment
                                      Filter: (lineitem.l_returnflag = 'R'::bpchar)
                                      Rows Removed by Filter: 4522345
                                      Buffers: shared hit=112555
                                ->  Hash  (cost=48625.00..48625.00 rows=59245 width=8) (actual time=112.296..112.297 rows=57280.00 loops=1)
                                      Output: orders.o_custkey, orders.o_orderkey
                                      Buckets: 65536  Batches: 1  Memory Usage: 2750kB
                                      Buffers: shared hit=26125
                                      ->  Seq Scan on public.orders  (cost=0.00..48625.00 rows=59245 width=8) (actual time=0.008..106.384 rows=57280.00 loops=1)
                                            Output: orders.o_custkey, orders.o_orderkey
                                            Filter: ((orders.o_orderdate >= '1993-06-01'::date) AND (orders.o_orderdate < '1993-09-01 00:00:00'::timestamp without time zone))
                                            Rows Removed by Filter: 1442720
                                            Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=148) (actual time=35.151..35.152 rows=150000.00 loops=1)
                                Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                Buckets: 262144  Batches: 1  Memory Usage: 28861kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=148) (actual time=0.003..12.951 rows=150000.00 loops=1)
                                      Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                      Buffers: shared hit=3594
                    ->  Hash  (cost=1.25..1.25 rows=25 width=30) (actual time=0.012..0.012 rows=25.00 loops=1)
                          Output: nation.n_name, nation.n_nationkey
                          Buckets: 1024  Batches: 1  Memory Usage: 10kB
                          Buffers: shared hit=1
                          ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=30) (actual time=0.005..0.006 rows=25.00 loops=1)
                                Output: nation.n_name, nation.n_nationkey
                                Buffers: shared hit=1
Planning:
  Buffers: shared hit=225
Planning Time: 0.395 ms
Execution Time: 900.298 ms

--- [ CONFIG: goo_cost ] ----------------------------------------
Limit  (cost=256575.70..256575.75 rows=20 width=202) (actual time=970.765..970.777 rows=20.00 loops=1)
  Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
  Buffers: shared hit=142278
  ->  Sort  (cost=256575.70..256720.54 rows=57936 width=202) (actual time=970.764..970.775 rows=20.00 loops=1)
        Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
        Sort Key: (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))) DESC
        Sort Method: top-N heapsort  Memory: 34kB
        Buffers: shared hit=142278
        ->  HashAggregate  (cost=254309.84..255034.04 rows=57936 width=202) (actual time=953.087..965.138 rows=37857.00 loops=1)
              Output: customer.c_custkey, customer.c_name, sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
              Group Key: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment
              Batches: 1  Memory Usage: 25617kB
              Buffers: shared hit=142275
              ->  Hash Join  (cost=59213.24..252861.44 rows=57936 width=182) (actual time=195.605..884.581 rows=114326.00 loops=1)
                    Output: customer.c_custkey, customer.c_name, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment, lineitem.l_extendedprice, lineitem.l_discount
                    Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                    Buffers: shared hit=142275
                    ->  Seq Scan on public.lineitem  (cost=0.00..187568.12 rows=1466857 width=16) (actual time=0.009..518.523 rows=1478870.00 loops=1)
                          Output: lineitem.l_orderkey, lineitem.l_partkey, lineitem.l_suppkey, lineitem.l_linenumber, lineitem.l_quantity, lineitem.l_extendedprice, lineitem.l_discount, lineitem.l_tax, lineitem.l_returnflag, lineitem.l_linestatus, lineitem.l_shipdate, lineitem.l_commitdate, lineitem.l_receiptdate, lineitem.l_shipinstruct, lineitem.l_shipmode, lineitem.l_comment
                          Filter: (lineitem.l_returnflag = 'R'::bpchar)
                          Rows Removed by Filter: 4522345
                          Buffers: shared hit=112555
                    ->  Hash  (cost=58472.68..58472.68 rows=59245 width=174) (actual time=195.498..195.502 rows=57280.00 loops=1)
                          Output: orders.o_orderkey, customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, nation.n_name
                          Buckets: 65536  Batches: 1  Memory Usage: 12133kB
                          Buffers: shared hit=29720
                          ->  Hash Join  (cost=9033.06..58472.68 rows=59245 width=174) (actual time=49.795..182.833 rows=57280.00 loops=1)
                                Output: orders.o_orderkey, customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, nation.n_name
                                Hash Cond: (orders.o_custkey = customer.c_custkey)
                                Buffers: shared hit=29720
                                ->  Seq Scan on public.orders  (cost=0.00..48625.00 rows=59245 width=8) (actual time=0.008..108.057 rows=57280.00 loops=1)
                                      Output: orders.o_orderkey, orders.o_custkey, orders.o_orderstatus, orders.o_totalprice, orders.o_orderdate, orders.o_orderpriority, orders.o_clerk, orders.o_shippriority, orders.o_comment
                                      Filter: ((orders.o_orderdate >= '1993-06-01'::date) AND (orders.o_orderdate < '1993-09-01 00:00:00'::timestamp without time zone))
                                      Rows Removed by Filter: 1442720
                                      Buffers: shared hit=26125
                                ->  Hash  (cost=7158.06..7158.06 rows=150000 width=170) (actual time=49.578..49.580 rows=150000.00 loops=1)
                                      Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, nation.n_name
                                      Buckets: 262144  Batches: 1  Memory Usage: 31864kB
                                      Buffers: shared hit=3595
                                      ->  Hash Join  (cost=1.56..7158.06 rows=150000 width=170) (actual time=0.017..23.571 rows=150000.00 loops=1)
                                            Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, nation.n_name
                                            Hash Cond: (customer.c_nationkey = nation.n_nationkey)
                                            Buffers: shared hit=3595
                                            ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=148) (actual time=0.004..7.246 rows=150000.00 loops=1)
                                                  Output: customer.c_custkey, customer.c_name, customer.c_address, customer.c_nationkey, customer.c_phone, customer.c_acctbal, customer.c_mktsegment, customer.c_comment
                                                  Buffers: shared hit=3594
                                            ->  Hash  (cost=1.25..1.25 rows=25 width=30) (actual time=0.008..0.008 rows=25.00 loops=1)
                                                  Output: nation.n_name, nation.n_nationkey
                                                  Buckets: 1024  Batches: 1  Memory Usage: 10kB
                                                  Buffers: shared hit=1
                                                  ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=30) (actual time=0.002..0.004 rows=25.00 loops=1)
                                                        Output: nation.n_name, nation.n_nationkey
                                                        Buffers: shared hit=1
Planning:
  Buffers: shared hit=225
Planning Time: 0.409 ms
Execution Time: 973.366 ms

--- [ CONFIG: geqo ] ----------------------------------------
Limit  (cost=255291.82..255291.87 rows=20 width=202) (actual time=905.351..905.358 rows=20.00 loops=1)
  Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
  Buffers: shared hit=142278
  ->  Sort  (cost=255291.82..255436.66 rows=57936 width=202) (actual time=905.350..905.355 rows=20.00 loops=1)
        Output: customer.c_custkey, customer.c_name, (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
        Sort Key: (sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount)))) DESC
        Sort Method: top-N heapsort  Memory: 34kB
        Buffers: shared hit=142278
        ->  HashAggregate  (cost=253025.96..253750.16 rows=57936 width=202) (actual time=888.650..899.758 rows=37857.00 loops=1)
              Output: customer.c_custkey, customer.c_name, sum((lineitem.l_extendedprice * ('1'::numeric - lineitem.l_discount))), customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment
              Group Key: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_phone, nation.n_name, customer.c_address, customer.c_comment
              Batches: 1  Memory Usage: 25617kB
              Buffers: shared hit=142275
              ->  Hash Join  (cost=56336.12..251577.56 rows=57936 width=182) (actual time=151.179..823.538 rows=114326.00 loops=1)
                    Output: customer.c_custkey, customer.c_name, customer.c_acctbal, nation.n_name, customer.c_address, customer.c_phone, customer.c_comment, lineitem.l_extendedprice, lineitem.l_discount
                    Hash Cond: (customer.c_nationkey = nation.n_nationkey)
                    Buffers: shared hit=142275
                    ->  Hash Join  (cost=56334.56..250779.38 rows=57936 width=160) (actual time=151.162..811.705 rows=114326.00 loops=1)
                          Output: lineitem.l_extendedprice, lineitem.l_discount, customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                          Hash Cond: (orders.o_custkey = customer.c_custkey)
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=49365.56..243013.76 rows=57936 width=16) (actual time=113.666..743.247 rows=114326.00 loops=1)
                                Output: lineitem.l_extendedprice, lineitem.l_discount, orders.o_custkey
                                Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                                Buffers: shared hit=138680
                                ->  Seq Scan on public.lineitem  (cost=0.00..187568.12 rows=1466857 width=16) (actual time=0.025..488.671 rows=1478870.00 loops=1)
                                      Output: lineitem.l_orderkey, lineitem.l_partkey, lineitem.l_suppkey, lineitem.l_linenumber, lineitem.l_quantity, lineitem.l_extendedprice, lineitem.l_discount, lineitem.l_tax, lineitem.l_returnflag, lineitem.l_linestatus, lineitem.l_shipdate, lineitem.l_commitdate, lineitem.l_receiptdate, lineitem.l_shipinstruct, lineitem.l_shipmode, lineitem.l_comment
                                      Filter: (lineitem.l_returnflag = 'R'::bpchar)
                                      Rows Removed by Filter: 4522345
                                      Buffers: shared hit=112555
                                ->  Hash  (cost=48625.00..48625.00 rows=59245 width=8) (actual time=113.547..113.547 rows=57280.00 loops=1)
                                      Output: orders.o_custkey, orders.o_orderkey
                                      Buckets: 65536  Batches: 1  Memory Usage: 2750kB
                                      Buffers: shared hit=26125
                                      ->  Seq Scan on public.orders  (cost=0.00..48625.00 rows=59245 width=8) (actual time=0.008..106.330 rows=57280.00 loops=1)
                                            Output: orders.o_custkey, orders.o_orderkey
                                            Filter: ((orders.o_orderdate >= '1993-06-01'::date) AND (orders.o_orderdate < '1993-09-01 00:00:00'::timestamp without time zone))
                                            Rows Removed by Filter: 1442720
                                            Buffers: shared hit=26125
                          ->  Hash  (cost=5094.00..5094.00 rows=150000 width=148) (actual time=37.298..37.299 rows=150000.00 loops=1)
                                Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                Buckets: 262144  Batches: 1  Memory Usage: 28861kB
                                Buffers: shared hit=3594
                                ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=148) (actual time=0.004..13.158 rows=150000.00 loops=1)
                                      Output: customer.c_custkey, customer.c_name, customer.c_acctbal, customer.c_address, customer.c_phone, customer.c_comment, customer.c_nationkey
                                      Buffers: shared hit=3594
                    ->  Hash  (cost=1.25..1.25 rows=25 width=30) (actual time=0.010..0.010 rows=25.00 loops=1)
                          Output: nation.n_name, nation.n_nationkey
                          Buckets: 1024  Batches: 1  Memory Usage: 10kB
                          Buffers: shared hit=1
                          ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=30) (actual time=0.005..0.006 rows=25.00 loops=1)
                                Output: nation.n_name, nation.n_nationkey
                                Buffers: shared hit=1
Planning:
  Buffers: shared hit=225
Planning Time: 0.882 ms
Execution Time: 906.367 ms
