(
(let $1 (lambda '($27 $28) $28 $27))
(let $2 (DataType 'Uint64))
(let $3 '('groupTribit (OptionalType $2)))
(let $4 '('('"_logical_id" '1108) '('"_id" '"b14801ae-8d384e74-31634729-58556f5f") '('"_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 '() (Void) (Void))) '('('"syscolumns" '('"record")))))))
  (let $20 (Uint64 '1))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 (lambda '($21) (% $21 (Int32 '"3"))) (lambda '($22 $23) $20) (lambda '($24 $25 $26) (AggrAdd $26 $20)) $1))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('"count" $2) $3))
(let $8 '('('"_logical_id" '1662) '('"_id" '"ae902477-c60bb204-9e807633-77a60019") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($29) (block '(
  (let $30 (WideCombiner (ToFlow (WideFromBlocks $29)) '"" (lambda '($32 $33) $33) (lambda '($34 $35 $36) $35) (lambda '($37 $38 $39 $40) (AggrAdd $38 $40)) $1))
  (let $31 (Bool 'true))
  (return (FromFlow (WideSort $30 '('('1 $31) '('0 $31)))))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('1 '"Asc") '('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($41) (FromFlow (NarrowMap (ToFlow $41) (lambda '($42 $43) (AsStruct '('"count" $42) '('groupTribit $43)))))) '('('"_logical_id" '1674) '('"_id" '"b6d61e01-34271f61-26732afe-76514dc1"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('groupTribit '"count")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
