(
(let $1 (Uint64 '20))
(let $2 '('"Category" (DataType 'String)))
(let $3 '('('"_logical_id" '1243) '('"_id" '"8008ee58-4ca3b55e-b23bf574-f25d87b1") '('"_wide_channels" (StructType $2))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $18 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $19 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $18)))
  (let $20 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $21 (YtStat '('Id '"Input0") '('RecordsCount '"200") '('DataSize '"9557") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $22 (YtTable '"Input0" $19 $20 $21 '() (Void) (Void) '"/Root/plato"))
  (let $23 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $22 '('"key") (Void) (Void))) '()))))
  (let $24 (WideFilter (DqReadWideWrap $23 '()) (lambda '($25) (> (Size $25) (Int32 '"2"))) $1))
  (return (FromFlow (WideMap $24 (lambda '($26) (block '(
    (let $27 (Uint32 '1))
    (return (Substring $26 $27 $27))
  ))))))
))) $3))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (lambda '($36 $37) $36 $37))
(let $7 (DataType 'Uint64))
(let $8 '('('"_logical_id" '1292) '('"_id" '"1c11e356-757f715b-c55f5fb9-f0a9aaf4") '('"_wide_channels" (StructType $2 '('_yql_agg_0 $7)))))
(let $9 (DqPhyStage '($5) (lambda '($28) (block '(
  (let $29 (Uint64 '1))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (Take (ToFlow $28) $1))) '-1073741824 (lambda '($30) $30) (lambda '($31 $32) $29) (lambda '($33 $34 $35) (AggrAdd $35 $29)) $6))
))) $8))
(let $10 (DqCnHashShuffle (TDqOutput $9 '0) '('0) '0 '"HashV2"))
(let $11 (StructType $2 '('"column1" $7)))
(let $12 '('('"_logical_id" '1824) '('"_id" '"2bac46ee-c4c192f8-b57928d2-59150bcb") '('"_wide_channels" $11)))
(let $13 (DqPhyStage '($10) (lambda '($38) (block '(
  (let $39 (WideCombiner (ToFlow (WideFromBlocks $38)) '"" (lambda '($40 $41) $40) (lambda '($42 $43 $44) $44) (lambda '($45 $46 $47 $48) (AggrAdd $47 $48)) $6))
  (return (FromFlow (WideSort $39 '('('0 (Bool 'true))))))
))) $12))
(let $14 (DqCnMerge (TDqOutput $13 '0) '('('0 '"Asc"))))
(let $15 (DqPhyStage '($14) (lambda '($49) (FromFlow (NarrowMap (ToFlow $49) (lambda '($50 $51) (AsStruct '('"Category" $50) '('"column1" $51)))))) '('('"_logical_id" '1836) '('"_id" '"c5569c6d-e4d1fe8e-c96d6fa4-929d7b9e"))))
(let $16 '($4 $9 $13 $15))
(let $17 (DqCnResult (TDqOutput $15 '0) '('"Category" '"column1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $16 '($17) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $11) '0 '0)) '('('"type" '"query"))))
)
