(
(let $1 (lambda '($31 $32) $32 $31))
(let $2 (DataType 'Uint64))
(let $3 '('"key" (DataType 'Uint32)))
(let $4 '('('"_logical_id" '879) '('"_id" '"cc2b419b-be41abe3-6f586f67-38f6a7c9") '('"_wide_channels" (StructType '('_yql_agg_0 $2) $3))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"Uint32"]];["subkey";["DataType";"Uint32"]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $17 (YtStat '('Id '"Input") '('RecordsCount '"3") '('DataSize '"78") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $20 (Uint64 '1))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (WideMap (WideFilter (DqReadWideWrap $19 '()) (lambda '($21 $22) (!= $22 (Int32 '"4")))) (lambda '($23 $24) $23)))) '-1073741824 (lambda '($25) $25) (lambda '($26 $27) $20) (lambda '($28 $29 $30) (AggrAdd $30 $20)) $1))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('"column1" $2) $3))
(let $8 '('('"_logical_id" '1398) '('"_id" '"a5e1ddd2-109a624f-3d3e3353-a634dcc0") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($33) (block '(
  (let $34 (WideCombiner (ToFlow (WideFromBlocks $33)) '"" (lambda '($35 $36) $36) (lambda '($37 $38 $39) $38) (lambda '($40 $41 $42 $43) (AggrAdd $41 $43)) $1))
  (return (FromFlow (WideSort $34 '('('1 (Bool 'true))))))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('1 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($44) (FromFlow (NarrowMap (ToFlow $44) (lambda '($45 $46) (AsStruct '('"column1" $45) '('"key" $46)))))) '('('"_logical_id" '1410) '('"_id" '"2bdaf456-a0f477f7-cdab0337-df7854a5"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"key" '"column1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
