(
(let $1 (lambda '($29 $30) $30 $29))
(let $2 (DataType 'String))
(let $3 '('mod (OptionalType (DataType 'Int32))))
(let $4 '('('"_logical_id" '2279) '('"_id" '"a99b1dcd-57d3a5ce-f1af3c5a-1f7457f") '('"_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 '('iv $2) $3))
(let $8 '('('"_logical_id" '2826) '('"_id" '"29c94abc-85f4fc77-8d073c04-f461396b") '('"_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 (NarrowFlatMap $32 (lambda '($45 $46) (OrderedMap (Collect $45) (lambda '($47) (AsStruct '('iv $47) '('mod $46)))))) '($33 $33) (lambda '($48) '((Member $48 'mod) (Member $48 'iv)))))
  (let $35 (lambda '($49) (Member $49 'iv) (Member $49 'mod)))
  (return (FromFlow (ExpandMap $34 $35)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('1 '"Asc") '('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($50) (FromFlow (NarrowMap (ToFlow $50) (lambda '($51 $52) (AsStruct '('iv $51) '('mod $52)))))) '('('"_logical_id" '2838) '('"_id" '"8ee405ef-63cf83de-156ad15f-8d0aee2b"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('mod 'iv)))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
