(
(let $1 (lambda '($29 $30) $30 $29))
(let $2 (DataType 'String))
(let $3 '('mod (OptionalType (DataType 'Int32))))
(let $4 '('('"_logical_id" '2038) '('"_id" '"c594f89c-b17811d3-a7d9be0c-b129b629") '('"_wide_channels" (StructType '('_yql_agg_0 (ListType $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 '"14") '('DataSize '"614") '('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" '"value") (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 $24)) (lambda '($25 $26 $27 $28) (Insert $28 $27)) $1)))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('lv $2) $3))
(let $8 '('('"_logical_id" '2581) '('"_id" '"cd846ffb-619eae1c-4f31db8e-b4017ba4") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($31) (block '(
  (let $32 (WideCombiner (ToFlow $31) '"" (lambda '($35 $36) $36) (lambda '($37 $38 $39) $38) (lambda '($40 $41 $42 $43) (Extend $41 $43)) $1))
  (let $33 (Sort (NarrowFlatMap $32 (lambda '($44 $45) (OrderedMap (Collect $44) (lambda '($46) (AsStruct '('lv $46) '('mod $45)))))) (Bool 'true) (lambda '($47) (Member $47 'lv))))
  (let $34 (lambda '($48) (Member $48 'lv) (Member $48 'mod)))
  (return (FromFlow (ExpandMap $33 $34)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($49) (FromFlow (NarrowMap (ToFlow $49) (lambda '($50 $51) (AsStruct '('lv $50) '('mod $51)))))) '('('"_logical_id" '2593) '('"_id" '"9abea532-c92eb43d-3de85457-87b5d924"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('lv 'mod)))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
