(
(let $1 (lambda '($29 $30) $30 $29))
(let $2 (DataType 'String))
(let $3 '('mod (OptionalType (DataType 'Int32))))
(let $4 '('('"_logical_id" '2457) '('"_id" '"625760fa-a04dcb9c-6f74bbbc-119d2267") '('"_wide_channels" (StructType '('_yql_agg_0 (ListType (StructType '('struct $2) '('"subkey" $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" '"subkey") (Void) (Void))) '()))))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 (lambda '($20 $21) (% (SafeCast $20 (OptionalType (DataType 'Uint32))) (Int32 '"10"))) (lambda '($22 $23 $24) (AsList (AsStruct '('struct $23) '('"subkey" $24)))) (lambda '($25 $26 $27 $28) (Insert $28 (AsStruct '('struct $26) '('"subkey" $27)))) $1)))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('"column1" $2) $3))
(let $8 '('('"_logical_id" '3111) '('"_id" '"38741c4a-c2f3549f-da6480a7-8edc5d07") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($31) (block '(
  (let $32 (WideCombiner (ToFlow $31) '"" (lambda '($36 $37) $37) (lambda '($38 $39 $40) $39) (lambda '($41 $42 $43 $44) (Extend $42 $44)) $1))
  (let $33 (Bool 'true))
  (let $34 (Sort (Map (NarrowFlatMap $32 (lambda '($45 $46) (OrderedMap (Collect $45) (lambda '($47) (AsStruct '('mod $46) '('struct $47)))))) (lambda '($48) (AsStruct '('"column1" (Member (Member $48 'struct) 'struct)) '('mod (Member $48 'mod))))) '($33 $33) (lambda '($49) '((Member $49 'mod) (Member $49 '"column1")))))
  (let $35 (lambda '($50) (Member $50 '"column1") (Member $50 'mod)))
  (return (FromFlow (ExpandMap $34 $35)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('1 '"Asc") '('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($51) (FromFlow (NarrowMap (ToFlow $51) (lambda '($52 $53) (AsStruct '('"column1" $52) '('mod $53)))))) '('('"_logical_id" '3123) '('"_id" '"9e58564-30c0e027-3acdd84a-75a8596b"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('mod '"column1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
