(
(let $1 (DataType 'Double))
(let $2 (Bool 'false))
(let $3 '('('"_logical_id" '1848) '('"_id" '"eb284ee8-84cdf7b1-c594d505-192a284") '('"_wide_channels" (StructType '('_yql_agg_0 $1)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $8 (KqpTable '"/local/test_db/olap_yatests/tpch/s1/lineitem" '"72075186224037897:10" '"" '1))
  (let $9 '('"l_discount" '"l_extendedprice" '"l_quantity" '"l_shipdate"))
  (let $10 (KqpBlockReadOlapTableRanges $8 (Void) $9 '() '() (lambda '($11) (block '(
    (let $12 '('gte '"l_discount" (Double '"0.0499999")))
    (let $13 '('lte '"l_discount" (Double '"0.0700001")))
    (let $14 '('lt '"l_quantity" (Int32 '"24")))
    (let $15 (StructType '('"l_discount" $1) '('"l_extendedprice" $1) '('"l_quantity" $1) '('"l_shipdate" (DataType 'Date32))))
    (let $16 '((KqpOlapApplyColumnArg $15 '"l_shipdate")))
    (let $17 (KqpOlapApply (lambda '($20) (>= $20 (Date '"8766"))) $16 '""))
    (let $18 (KqpOlapApply (lambda '($21) (Coalesce (< $21 (Just (Date '"9131"))) $2)) $16 '""))
    (let $19 (KqpOlapAnd $12 $13 $14 $17 $18))
    (return (TKqpOlapExtractMembers (KqpOlapFilter $11 $19) '('"l_discount" '"l_extendedprice")))
  )))))
  (return (BlockCombineAll (WideToBlocks (FromFlow (WideMap (ToFlow (WideFromBlocks (FromFlow $10))) (lambda '($22 $23) (* $23 $22))))) (Void) '('((AggBlockApply 'sum $1) '0))))
))) $3))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (DqPhyStage '($5) (lambda '($24) (block '(
  (let $25 (WideCondense1 (ToFlow $24) (lambda '($27) $27) (lambda '($28 $29) $2) (lambda '($30 $31) (AggrAdd $30 $31))))
  (let $26 (Condense (NarrowMap (Take $25 (Uint64 '1)) (lambda '($32) (AsStruct '('Sum0 $32)))) (Nothing (OptionalType (StructType '('Sum0 $1)))) (lambda '($33 $34) $2) (lambda '($35 $36) (Just $35))))
  (return (FromFlow (Map $26 (lambda '($37) (AsStruct '('"revenue" (Member $37 'Sum0)))))))
))) '('('"_logical_id" '2959) '('"_id" '"c88a9d68-e7d7d53a-169c500d-5f87f367"))))
(let $7 (DqCnResult (TDqOutput $6 '0) '('"revenue")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"revenue" (OptionalType $1)))) '0 '0)) '('('"type" '"query"))))
)
