

======================================================================
 QUERY FILE: 18 (18.sql)
 TIMESTAMP:  Mon Dec 15 19:01:42 CST 2025
======================================================================

--- [ CONFIG: dp ] ----------------------------------------
Limit  (cost=497363.63..497363.88 rows=100 width=71) (actual time=2396.286..2396.294 rows=9.00 loops=1)
  Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
  Buffers: shared hit=254835
  ->  Sort  (cost=497363.63..498597.21 rows=493434 width=71) (actual time=2396.285..2396.292 rows=9.00 loops=1)
        Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
        Sort Key: orders.o_totalprice DESC, orders.o_orderdate
        Sort Method: quicksort  Memory: 25kB
        Buffers: shared hit=254835
        ->  HashAggregate  (cost=472337.01..478504.93 rows=493434 width=71) (actual time=2392.921..2396.274 rows=9.00 loops=1)
              Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, sum(lineitem.l_quantity)
              Group Key: orders.o_totalprice, orders.o_orderdate, customer.c_name, customer.c_custkey, orders.o_orderkey
              Batches: 1  Memory Usage: 16417kB
              Buffers: shared hit=254829
              ->  Hash Join  (cost=264931.72..464935.50 rows=493434 width=44) (actual time=1984.082..2392.790 rows=63.00 loops=1)
                    Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem.l_quantity
                    Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                    Buffers: shared hit=254829
                    ->  Seq Scan on public.lineitem  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.012..265.661 rows=6001215.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
                          Buffers: shared hit=112555
                    ->  Hash  (cost=263390.01..263390.01 rows=123337 width=43) (actual time=1870.473..1870.478 rows=9.00 loops=1)
                          Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey
                          Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=216631.61..263390.01 rows=123337 width=43) (actual time=1767.869..1870.445 rows=9.00 loops=1)
                                Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey
                                Hash Cond: (orders.o_custkey = customer.c_custkey)
                                Buffers: shared hit=142274
                                ->  Hash Join  (cost=209662.61..254725.12 rows=123337 width=24) (actual time=1738.065..1840.614 rows=9.00 loops=1)
                                      Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey, lineitem_1.l_orderkey
                                      Inner Unique: true
                                      Hash Cond: (orders.o_orderkey = lineitem_1.l_orderkey)
                                      Buffers: shared hit=138680
                                      ->  Seq Scan on public.orders  (cost=0.00..41125.00 rows=1500000 width=20) (actual time=0.024..60.622 rows=1500000.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
                                            Buffers: shared hit=26125
                                      ->  Hash  (cost=208120.90..208120.90 rows=123337 width=4) (actual time=1709.992..1709.996 rows=9.00 loops=1)
                                            Output: lineitem_1.l_orderkey
                                            Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                                            Buffers: shared hit=112555
                                            ->  HashAggregate  (cost=202570.75..208120.90 rows=123337 width=4) (actual time=1292.677..1709.968 rows=9.00 loops=1)
                                                  Output: lineitem_1.l_orderkey
                                                  Group Key: lineitem_1.l_orderkey
                                                  Filter: (sum(lineitem_1.l_quantity) > '313'::numeric)
                                                  Batches: 1  Memory Usage: 532497kB
                                                  Rows Removed by Filter: 1499991
                                                  Buffers: shared hit=112555
                                                  ->  Seq Scan on public.lineitem lineitem_1  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.003..254.948 rows=6001215.00 loops=1)
                                                        Output: lineitem_1.l_orderkey, lineitem_1.l_partkey, lineitem_1.l_suppkey, lineitem_1.l_linenumber, lineitem_1.l_quantity, lineitem_1.l_extendedprice, lineitem_1.l_discount, lineitem_1.l_tax, lineitem_1.l_returnflag, lineitem_1.l_linestatus, lineitem_1.l_shipdate, lineitem_1.l_commitdate, lineitem_1.l_receiptdate, lineitem_1.l_shipinstruct, lineitem_1.l_shipmode, lineitem_1.l_comment
                                                        Buffers: shared hit=112555
                                ->  Hash  (cost=5094.00..5094.00 rows=150000 width=23) (actual time=29.600..29.600 rows=150000.00 loops=1)
                                      Output: customer.c_name, customer.c_custkey
                                      Buckets: 262144  Batches: 1  Memory Usage: 10252kB
                                      Buffers: shared hit=3594
                                      ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=23) (actual time=0.005..12.194 rows=150000.00 loops=1)
                                            Output: customer.c_name, customer.c_custkey
                                            Buffers: shared hit=3594
Planning:
  Buffers: shared hit=132
Planning Time: 0.377 ms
Execution Time: 2407.073 ms

--- [ CONFIG: goo_rows ] ----------------------------------------
Limit  (cost=497363.63..497363.88 rows=100 width=71) (actual time=2539.741..2539.748 rows=9.00 loops=1)
  Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
  Buffers: shared hit=254835
  ->  Sort  (cost=497363.63..498597.21 rows=493434 width=71) (actual time=2539.740..2539.747 rows=9.00 loops=1)
        Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
        Sort Key: orders.o_totalprice DESC, orders.o_orderdate
        Sort Method: quicksort  Memory: 25kB
        Buffers: shared hit=254835
        ->  HashAggregate  (cost=472337.01..478504.93 rows=493434 width=71) (actual time=2536.310..2539.726 rows=9.00 loops=1)
              Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, sum(lineitem.l_quantity)
              Group Key: orders.o_totalprice, orders.o_orderdate, customer.c_name, customer.c_custkey, orders.o_orderkey
              Batches: 1  Memory Usage: 16417kB
              Buffers: shared hit=254829
              ->  Hash Join  (cost=264931.72..464935.50 rows=493434 width=44) (actual time=2101.676..2536.145 rows=63.00 loops=1)
                    Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem.l_quantity
                    Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                    Buffers: shared hit=254829
                    ->  Seq Scan on public.lineitem  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.008..301.038 rows=6001215.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
                          Buffers: shared hit=112555
                    ->  Hash  (cost=263390.01..263390.01 rows=123337 width=43) (actual time=1985.658..1985.661 rows=9.00 loops=1)
                          Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey
                          Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=216631.61..263390.01 rows=123337 width=43) (actual time=1873.587..1985.625 rows=9.00 loops=1)
                                Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey
                                Hash Cond: (orders.o_custkey = customer.c_custkey)
                                Buffers: shared hit=142274
                                ->  Hash Join  (cost=209662.61..254725.12 rows=123337 width=24) (actual time=1851.741..1963.745 rows=9.00 loops=1)
                                      Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey, lineitem_1.l_orderkey
                                      Inner Unique: true
                                      Hash Cond: (orders.o_orderkey = lineitem_1.l_orderkey)
                                      Buffers: shared hit=138680
                                      ->  Seq Scan on public.orders  (cost=0.00..41125.00 rows=1500000 width=20) (actual time=0.010..81.018 rows=1500000.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
                                            Buffers: shared hit=26125
                                      ->  Hash  (cost=208120.90..208120.90 rows=123337 width=4) (actual time=1821.718..1821.719 rows=9.00 loops=1)
                                            Output: lineitem_1.l_orderkey
                                            Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                                            Buffers: shared hit=112555
                                            ->  HashAggregate  (cost=202570.75..208120.90 rows=123337 width=4) (actual time=1403.000..1821.647 rows=9.00 loops=1)
                                                  Output: lineitem_1.l_orderkey
                                                  Group Key: lineitem_1.l_orderkey
                                                  Filter: (sum(lineitem_1.l_quantity) > '313'::numeric)
                                                  Batches: 1  Memory Usage: 532497kB
                                                  Rows Removed by Filter: 1499991
                                                  Buffers: shared hit=112555
                                                  ->  Seq Scan on public.lineitem lineitem_1  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.003..310.403 rows=6001215.00 loops=1)
                                                        Output: lineitem_1.l_orderkey, lineitem_1.l_partkey, lineitem_1.l_suppkey, lineitem_1.l_linenumber, lineitem_1.l_quantity, lineitem_1.l_extendedprice, lineitem_1.l_discount, lineitem_1.l_tax, lineitem_1.l_returnflag, lineitem_1.l_linestatus, lineitem_1.l_shipdate, lineitem_1.l_commitdate, lineitem_1.l_receiptdate, lineitem_1.l_shipinstruct, lineitem_1.l_shipmode, lineitem_1.l_comment
                                                        Buffers: shared hit=112555
                                ->  Hash  (cost=5094.00..5094.00 rows=150000 width=23) (actual time=21.643..21.644 rows=150000.00 loops=1)
                                      Output: customer.c_name, customer.c_custkey
                                      Buckets: 262144  Batches: 1  Memory Usage: 10252kB
                                      Buffers: shared hit=3594
                                      ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=23) (actual time=0.005..11.060 rows=150000.00 loops=1)
                                            Output: customer.c_name, customer.c_custkey
                                            Buffers: shared hit=3594
Planning:
  Buffers: shared hit=132
Planning Time: 0.304 ms
Execution Time: 2553.160 ms

--- [ CONFIG: goo_selectivity ] ----------------------------------------
Limit  (cost=594053.51..594053.76 rows=100 width=71) (actual time=3661.790..3661.793 rows=9.00 loops=1)
  Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
  Buffers: shared hit=254835
  ->  Sort  (cost=594053.51..595287.09 rows=493434 width=71) (actual time=3661.789..3661.792 rows=9.00 loops=1)
        Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
        Sort Key: orders.o_totalprice DESC, orders.o_orderdate
        Sort Method: quicksort  Memory: 25kB
        Buffers: shared hit=254835
        ->  HashAggregate  (cost=569026.89..575194.82 rows=493434 width=71) (actual time=3659.005..3661.773 rows=9.00 loops=1)
              Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, sum(lineitem.l_quantity)
              Group Key: orders.o_totalprice, orders.o_orderdate, customer.c_name, customer.c_custkey, orders.o_orderkey
              Batches: 1  Memory Usage: 16417kB
              Buffers: shared hit=254829
              ->  Hash Join  (cost=276506.61..561625.38 rows=493434 width=44) (actual time=2472.939..3658.852 rows=63.00 loops=1)
                    Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem.l_quantity
                    Hash Cond: (orders.o_custkey = customer.c_custkey)
                    Buffers: shared hit=254829
                    ->  Hash Join  (cost=269537.61..547871.66 rows=493434 width=25) (actual time=2448.600..3634.488 rows=63.00 loops=1)
                          Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey, lineitem.l_quantity
                          Inner Unique: true
                          Hash Cond: (orders.o_orderkey = lineitem_1.l_orderkey)
                          Buffers: shared hit=251235
                          ->  Hash Join  (cost=59875.00..322456.25 rows=6001050 width=29) (actual time=361.816..1685.031 rows=6001215.00 loops=1)
                                Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey, lineitem.l_quantity, lineitem.l_orderkey
                                Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                                Buffers: shared hit=138680
                                ->  Seq Scan on public.lineitem  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.016..251.034 rows=6001215.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
                                      Buffers: shared hit=112555
                                ->  Hash  (cost=41125.00..41125.00 rows=1500000 width=20) (actual time=360.355..360.355 rows=1500000.00 loops=1)
                                      Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey
                                      Buckets: 2097152  Batches: 1  Memory Usage: 98242kB
                                      Buffers: shared hit=26125
                                      ->  Seq Scan on public.orders  (cost=0.00..41125.00 rows=1500000 width=20) (actual time=0.012..107.865 rows=1500000.00 loops=1)
                                            Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey
                                            Buffers: shared hit=26125
                          ->  Hash  (cost=208120.90..208120.90 rows=123337 width=4) (actual time=1683.697..1683.698 rows=9.00 loops=1)
                                Output: lineitem_1.l_orderkey
                                Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                                Buffers: shared hit=112555
                                ->  HashAggregate  (cost=202570.75..208120.90 rows=123337 width=4) (actual time=1275.855..1683.676 rows=9.00 loops=1)
                                      Output: lineitem_1.l_orderkey
                                      Group Key: lineitem_1.l_orderkey
                                      Filter: (sum(lineitem_1.l_quantity) > '313'::numeric)
                                      Batches: 1  Memory Usage: 532497kB
                                      Rows Removed by Filter: 1499991
                                      Buffers: shared hit=112555
                                      ->  Seq Scan on public.lineitem lineitem_1  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.014..245.255 rows=6001215.00 loops=1)
                                            Output: lineitem_1.l_orderkey, lineitem_1.l_partkey, lineitem_1.l_suppkey, lineitem_1.l_linenumber, lineitem_1.l_quantity, lineitem_1.l_extendedprice, lineitem_1.l_discount, lineitem_1.l_tax, lineitem_1.l_returnflag, lineitem_1.l_linestatus, lineitem_1.l_shipdate, lineitem_1.l_commitdate, lineitem_1.l_receiptdate, lineitem_1.l_shipinstruct, lineitem_1.l_shipmode, lineitem_1.l_comment
                                            Buffers: shared hit=112555
                    ->  Hash  (cost=5094.00..5094.00 rows=150000 width=23) (actual time=24.147..24.147 rows=150000.00 loops=1)
                          Output: customer.c_name, customer.c_custkey
                          Buckets: 262144  Batches: 1  Memory Usage: 10252kB
                          Buffers: shared hit=3594
                          ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=23) (actual time=0.008..11.585 rows=150000.00 loops=1)
                                Output: customer.c_name, customer.c_custkey
                                Buffers: shared hit=3594
Planning:
  Buffers: shared hit=132
Planning Time: 0.337 ms
Execution Time: 3674.460 ms

--- [ CONFIG: goo_result_size ] ----------------------------------------
Limit  (cost=497363.63..497363.88 rows=100 width=71) (actual time=2268.444..2268.448 rows=9.00 loops=1)
  Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
  Buffers: shared hit=254835
  ->  Sort  (cost=497363.63..498597.21 rows=493434 width=71) (actual time=2268.443..2268.447 rows=9.00 loops=1)
        Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
        Sort Key: orders.o_totalprice DESC, orders.o_orderdate
        Sort Method: quicksort  Memory: 25kB
        Buffers: shared hit=254835
        ->  HashAggregate  (cost=472337.01..478504.93 rows=493434 width=71) (actual time=2265.860..2268.430 rows=9.00 loops=1)
              Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, sum(lineitem.l_quantity)
              Group Key: orders.o_totalprice, orders.o_orderdate, customer.c_name, customer.c_custkey, orders.o_orderkey
              Batches: 1  Memory Usage: 16417kB
              Buffers: shared hit=254829
              ->  Hash Join  (cost=264931.72..464935.50 rows=493434 width=44) (actual time=1875.342..2265.749 rows=63.00 loops=1)
                    Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem.l_quantity
                    Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                    Buffers: shared hit=254829
                    ->  Seq Scan on public.lineitem  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.008..246.676 rows=6001215.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
                          Buffers: shared hit=112555
                    ->  Hash  (cost=263390.01..263390.01 rows=123337 width=43) (actual time=1771.642..1771.644 rows=9.00 loops=1)
                          Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey
                          Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=216631.61..263390.01 rows=123337 width=43) (actual time=1675.002..1771.621 rows=9.00 loops=1)
                                Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey
                                Hash Cond: (orders.o_custkey = customer.c_custkey)
                                Buffers: shared hit=142274
                                ->  Hash Join  (cost=209662.61..254725.12 rows=123337 width=24) (actual time=1653.214..1749.826 rows=9.00 loops=1)
                                      Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey, lineitem_1.l_orderkey
                                      Inner Unique: true
                                      Hash Cond: (orders.o_orderkey = lineitem_1.l_orderkey)
                                      Buffers: shared hit=138680
                                      ->  Seq Scan on public.orders  (cost=0.00..41125.00 rows=1500000 width=20) (actual time=0.017..57.209 rows=1500000.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
                                            Buffers: shared hit=26125
                                      ->  Hash  (cost=208120.90..208120.90 rows=123337 width=4) (actual time=1626.476..1626.477 rows=9.00 loops=1)
                                            Output: lineitem_1.l_orderkey
                                            Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                                            Buffers: shared hit=112555
                                            ->  HashAggregate  (cost=202570.75..208120.90 rows=123337 width=4) (actual time=1229.979..1626.459 rows=9.00 loops=1)
                                                  Output: lineitem_1.l_orderkey
                                                  Group Key: lineitem_1.l_orderkey
                                                  Filter: (sum(lineitem_1.l_quantity) > '313'::numeric)
                                                  Batches: 1  Memory Usage: 532497kB
                                                  Rows Removed by Filter: 1499991
                                                  Buffers: shared hit=112555
                                                  ->  Seq Scan on public.lineitem lineitem_1  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.003..237.103 rows=6001215.00 loops=1)
                                                        Output: lineitem_1.l_orderkey, lineitem_1.l_partkey, lineitem_1.l_suppkey, lineitem_1.l_linenumber, lineitem_1.l_quantity, lineitem_1.l_extendedprice, lineitem_1.l_discount, lineitem_1.l_tax, lineitem_1.l_returnflag, lineitem_1.l_linestatus, lineitem_1.l_shipdate, lineitem_1.l_commitdate, lineitem_1.l_receiptdate, lineitem_1.l_shipinstruct, lineitem_1.l_shipmode, lineitem_1.l_comment
                                                        Buffers: shared hit=112555
                                ->  Hash  (cost=5094.00..5094.00 rows=150000 width=23) (actual time=21.608..21.608 rows=150000.00 loops=1)
                                      Output: customer.c_name, customer.c_custkey
                                      Buckets: 262144  Batches: 1  Memory Usage: 10252kB
                                      Buffers: shared hit=3594
                                      ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=23) (actual time=0.005..11.084 rows=150000.00 loops=1)
                                            Output: customer.c_name, customer.c_custkey
                                            Buffers: shared hit=3594
Planning:
  Buffers: shared hit=132
Planning Time: 0.320 ms
Execution Time: 2280.726 ms

--- [ CONFIG: goo_cost ] ----------------------------------------
Limit  (cost=516292.74..516292.99 rows=100 width=71) (actual time=2736.794..2736.797 rows=9.00 loops=1)
  Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
  Buffers: shared hit=254835
  ->  Sort  (cost=516292.74..517526.33 rows=493434 width=71) (actual time=2736.793..2736.796 rows=9.00 loops=1)
        Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
        Sort Key: orders.o_totalprice DESC, orders.o_orderdate
        Sort Method: quicksort  Memory: 25kB
        Buffers: shared hit=254835
        ->  HashAggregate  (cost=491266.12..497434.05 rows=493434 width=71) (actual time=2734.266..2736.780 rows=9.00 loops=1)
              Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, sum(lineitem.l_quantity)
              Group Key: orders.o_totalprice, orders.o_orderdate, customer.c_name, customer.c_custkey, orders.o_orderkey
              Batches: 1  Memory Usage: 16417kB
              Buffers: shared hit=254829
              ->  Hash Join  (cost=283860.84..483864.61 rows=493434 width=44) (actual time=2346.766..2734.165 rows=63.00 loops=1)
                    Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem.l_quantity
                    Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                    Buffers: shared hit=254829
                    ->  Seq Scan on public.lineitem  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.008..248.688 rows=6001215.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
                          Buffers: shared hit=112555
                    ->  Hash  (cost=282319.12..282319.12 rows=123337 width=43) (actual time=2240.431..2240.433 rows=9.00 loops=1)
                          Output: lineitem_1.l_orderkey, customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice
                          Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=216631.61..282319.12 rows=123337 width=43) (actual time=1866.335..2240.404 rows=9.00 loops=1)
                                Output: lineitem_1.l_orderkey, customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice
                                Inner Unique: true
                                Hash Cond: (orders.o_orderkey = lineitem_1.l_orderkey)
                                Buffers: shared hit=142274
                                ->  Hash Join  (cost=6969.00..68719.00 rows=1500000 width=39) (actual time=22.189..421.109 rows=1500000.00 loops=1)
                                      Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice
                                      Hash Cond: (orders.o_custkey = customer.c_custkey)
                                      Buffers: shared hit=29719
                                      ->  Seq Scan on public.orders  (cost=0.00..41125.00 rows=1500000 width=20) (actual time=0.004..60.010 rows=1500000.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
                                            Buffers: shared hit=26125
                                      ->  Hash  (cost=5094.00..5094.00 rows=150000 width=23) (actual time=22.029..22.030 rows=150000.00 loops=1)
                                            Output: customer.c_name, customer.c_custkey
                                            Buckets: 262144  Batches: 1  Memory Usage: 10252kB
                                            Buffers: shared hit=3594
                                            ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=23) (actual time=0.004..11.171 rows=150000.00 loops=1)
                                                  Output: customer.c_name, customer.c_custkey
                                                  Buffers: shared hit=3594
                                ->  Hash  (cost=208120.90..208120.90 rows=123337 width=4) (actual time=1736.443..1736.444 rows=9.00 loops=1)
                                      Output: lineitem_1.l_orderkey
                                      Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                                      Buffers: shared hit=112555
                                      ->  HashAggregate  (cost=202570.75..208120.90 rows=123337 width=4) (actual time=1311.848..1736.399 rows=9.00 loops=1)
                                            Output: lineitem_1.l_orderkey
                                            Group Key: lineitem_1.l_orderkey
                                            Filter: (sum(lineitem_1.l_quantity) > '313'::numeric)
                                            Batches: 1  Memory Usage: 532497kB
                                            Rows Removed by Filter: 1499991
                                            Buffers: shared hit=112555
                                            ->  Seq Scan on public.lineitem lineitem_1  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.007..239.663 rows=6001215.00 loops=1)
                                                  Output: lineitem_1.l_orderkey, lineitem_1.l_partkey, lineitem_1.l_suppkey, lineitem_1.l_linenumber, lineitem_1.l_quantity, lineitem_1.l_extendedprice, lineitem_1.l_discount, lineitem_1.l_tax, lineitem_1.l_returnflag, lineitem_1.l_linestatus, lineitem_1.l_shipdate, lineitem_1.l_commitdate, lineitem_1.l_receiptdate, lineitem_1.l_shipinstruct, lineitem_1.l_shipmode, lineitem_1.l_comment
                                                  Buffers: shared hit=112555
Planning:
  Buffers: shared hit=132
Planning Time: 0.309 ms
Execution Time: 2747.466 ms

--- [ CONFIG: geqo ] ----------------------------------------
Limit  (cost=497363.63..497363.88 rows=100 width=71) (actual time=2346.263..2346.267 rows=9.00 loops=1)
  Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
  Buffers: shared hit=254835
  ->  Sort  (cost=497363.63..498597.21 rows=493434 width=71) (actual time=2346.262..2346.265 rows=9.00 loops=1)
        Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, (sum(lineitem.l_quantity))
        Sort Key: orders.o_totalprice DESC, orders.o_orderdate
        Sort Method: quicksort  Memory: 25kB
        Buffers: shared hit=254835
        ->  HashAggregate  (cost=472337.01..478504.93 rows=493434 width=71) (actual time=2343.687..2346.248 rows=9.00 loops=1)
              Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, sum(lineitem.l_quantity)
              Group Key: orders.o_totalprice, orders.o_orderdate, customer.c_name, customer.c_custkey, orders.o_orderkey
              Batches: 1  Memory Usage: 16417kB
              Buffers: shared hit=254829
              ->  Hash Join  (cost=264931.72..464935.50 rows=493434 width=44) (actual time=1928.104..2343.557 rows=63.00 loops=1)
                    Output: customer.c_name, customer.c_custkey, orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem.l_quantity
                    Hash Cond: (lineitem.l_orderkey = orders.o_orderkey)
                    Buffers: shared hit=254829
                    ->  Seq Scan on public.lineitem  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.009..256.506 rows=6001215.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
                          Buffers: shared hit=112555
                    ->  Hash  (cost=263390.01..263390.01 rows=123337 width=43) (actual time=1818.670..1818.672 rows=9.00 loops=1)
                          Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey, customer.c_name, customer.c_custkey
                          Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                          Buffers: shared hit=142274
                          ->  Hash Join  (cost=216631.61..263390.01 rows=123337 width=43) (actual time=1717.228..1818.652 rows=9.00 loops=1)
                                Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, lineitem_1.l_orderkey, customer.c_name, customer.c_custkey
                                Hash Cond: (orders.o_custkey = customer.c_custkey)
                                Buffers: shared hit=142274
                                ->  Hash Join  (cost=209662.61..254725.12 rows=123337 width=24) (actual time=1693.305..1794.719 rows=9.00 loops=1)
                                      Output: orders.o_orderkey, orders.o_orderdate, orders.o_totalprice, orders.o_custkey, lineitem_1.l_orderkey
                                      Inner Unique: true
                                      Hash Cond: (orders.o_orderkey = lineitem_1.l_orderkey)
                                      Buffers: shared hit=138680
                                      ->  Seq Scan on public.orders  (cost=0.00..41125.00 rows=1500000 width=20) (actual time=0.013..58.563 rows=1500000.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
                                            Buffers: shared hit=26125
                                      ->  Hash  (cost=208120.90..208120.90 rows=123337 width=4) (actual time=1665.801..1665.802 rows=9.00 loops=1)
                                            Output: lineitem_1.l_orderkey
                                            Buckets: 131072  Batches: 1  Memory Usage: 1025kB
                                            Buffers: shared hit=112555
                                            ->  HashAggregate  (cost=202570.75..208120.90 rows=123337 width=4) (actual time=1248.992..1665.776 rows=9.00 loops=1)
                                                  Output: lineitem_1.l_orderkey
                                                  Group Key: lineitem_1.l_orderkey
                                                  Filter: (sum(lineitem_1.l_quantity) > '313'::numeric)
                                                  Batches: 1  Memory Usage: 532497kB
                                                  Rows Removed by Filter: 1499991
                                                  Buffers: shared hit=112555
                                                  ->  Seq Scan on public.lineitem lineitem_1  (cost=0.00..172565.50 rows=6001050 width=9) (actual time=0.007..241.285 rows=6001215.00 loops=1)
                                                        Output: lineitem_1.l_orderkey, lineitem_1.l_partkey, lineitem_1.l_suppkey, lineitem_1.l_linenumber, lineitem_1.l_quantity, lineitem_1.l_extendedprice, lineitem_1.l_discount, lineitem_1.l_tax, lineitem_1.l_returnflag, lineitem_1.l_linestatus, lineitem_1.l_shipdate, lineitem_1.l_commitdate, lineitem_1.l_receiptdate, lineitem_1.l_shipinstruct, lineitem_1.l_shipmode, lineitem_1.l_comment
                                                        Buffers: shared hit=112555
                                ->  Hash  (cost=5094.00..5094.00 rows=150000 width=23) (actual time=23.760..23.760 rows=150000.00 loops=1)
                                      Output: customer.c_name, customer.c_custkey
                                      Buckets: 262144  Batches: 1  Memory Usage: 10252kB
                                      Buffers: shared hit=3594
                                      ->  Seq Scan on public.customer  (cost=0.00..5094.00 rows=150000 width=23) (actual time=0.006..11.514 rows=150000.00 loops=1)
                                            Output: customer.c_name, customer.c_custkey
                                            Buffers: shared hit=3594
Planning:
  Buffers: shared hit=132
Planning Time: 0.873 ms
Execution Time: 2357.856 ms
