(
(let $1 (lambda '($26 $27) $27 $26))
(let $2 (DataType 'Uint64))
(let $3 '('key (OptionalType (DataType 'Int32))))
(let $4 '('('"_logical_id" '1134) '('"_id" '"ab83c7ae-c0a7e628-505e5f1f-b5b5fe0f") '('"_wide_channels" (StructType '('_yql_agg_0 $2) $3))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (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 '"4") '('DataSize '"166") '('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) (Void) (Void))) '()))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 (lambda '($20) (% (SafeCast $20 (OptionalType (DataType 'Uint32))) (Int32 '"10"))) (lambda '($21 $22) (Uint64 '1)) (lambda '($23 $24 $25) (Inc $25)) $1))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('count $2) $3))
(let $8 '('('"_logical_id" '1782) '('"_id" '"dee883e-48a8e04a-90275cde-3dc4fc29") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($28) (block '(
  (let $29 (WideCombiner (ToFlow (WideFromBlocks $28)) '"" (lambda '($31 $32) $32) (lambda '($33 $34 $35) $34) (lambda '($36 $37 $38 $39) (AggrAdd $37 $39)) $1))
  (let $30 (Bool 'true))
  (return (FromFlow (WideSort $29 '('('1 $30) '('0 $30)))))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('1 '"Asc") '('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($40) (FromFlow (NarrowMap (ToFlow $40) (lambda '($41 $42) (AsStruct '('count $41) '('key $42)))))) '('('"_logical_id" '1794) '('"_id" '"59c0ca23-94a4d125-948b648e-9fa008be"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('key 'count)))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
