                                                                                                      QUERY PLAN

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----
-------------
 Limit  (cost=1001.19..495095.84 rows=1 width=27) (actual time=20350.547..20350.548 rows=1 loops=1)
   ->  GroupAggregate  (cost=1001.19..3459663.77 rows=7 width=27) (actual time=20350.546..20350.546 rows=1 loops=1)
         Group Key: lineitem.l_shipmode
         ->  Gather Merge  (cost=1001.19..3449409.24 rows=585969 width=27) (actual time=4.264..20131.603 rows=311095 loops=1)
               Workers Planned: 4
               Workers Launched: 4
               ->  Nested Loop  (cost=1.13..3378614.63 rows=146492 width=27) (actual time=0.165..4085.685 rows=62244 loops=5)
                     ->  Parallel Index Scan using idx_l_shipmode on lineitem  (cost=0.57..3269108.53 rows=146492 width=19) (actual time=0.126..3488.154 rows=62244 loops=5)
                           Index Cond: (l_shipmode = ANY ('{"REG AIR",RAIL}'::bpchar[]))
                           Filter: ((l_commitdate < l_receiptdate) AND (l_shipdate < l_commitdate) AND (l_receiptdate >= '1995-01-01'::date) AND (l_receiptdate < '1996-01-01 00:00:00'::timestamp wit
hout
 time zone))
                           Rows Removed by Filter: 3367438
                     ->  Index Scan using orders_pkey on orders  (cost=0.56..0.75 rows=1 width=20) (actual time=0.008..0.008 rows=1 loops=311221)
                           Index Cond: (o_orderkey = lineitem.l_orderkey)
 Planning time: 0.525 ms
 Execution time: 20353.231 ms 
(15 rows)

