(
(let $1 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $2 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $1)))
(let $3 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $4 (YtStat '('Id '"Input2") '('RecordsCount '"4") '('DataSize '"164") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $5 (YtTable '"Input2" $2 $3 $4 '() (Void) (Void) '"/Root/plato"))
(let $6 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $5 '('"key" '"value") (Void) (Void))) '()))))
(let $7 (DqReadWideWrap $6 '()))
(let $8 '('"_logical_id" '1483))
(let $9 (DataType 'String))
(let $10 (StructType '('"key" $9) '('"value" $9)))
(let $11 '('"_wide_channels" $10))
(let $12 '($8 '('"_id" '"1725d4c6-e1ce5800-c289493e-2973fd27") $11))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $28 (lambda '($32 $33) $32 $33))
  (let $29 (lambda '($34 $35 $36 $37) $34 $35))
  (let $30 (lambda '($38 $39 $40 $41 $42 $43) $42 $43))
  (let $31 (lambda '($44 $45 $46 $47) $46 $47))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow $7)) '-1073741824 $28 $29 $30 $31))
))) $12))
(let $14 (DqCnHashShuffle (TDqOutput $13 '0) '('0 '1) '0 '"HashV2"))
(let $15 (lambda '($54 $55) (AsStruct '('"key" $54) '('"value" $55))))
(let $16 '('('"_logical_id" '1572) '('"_id" '"a37bd216-13f62543-327bee56-1596a1c0") '('"_partition_mode" '"aggregate") $11))
(let $17 (DqPhyStage '($14) (lambda '($48) (block '(
  (let $49 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $48)) (lambda '($52 $53) '($52 $53)) $15 '('Auto 'Many)))
  (let $50 (Condense1 (OrderedFlatMap $49 (lambda '($56) (OrderedFlatMap (DictPayloads $56) (lambda '($57) $57)))) (lambda '($58) $58) (lambda '($59 $60) (Or (AggrNotEquals (Member $59 '"key") (Member $60 '"key")) (AggrNotEquals (Member $59 '"value") (Member $60 '"value")))) (lambda '($61 $62) $62)))
  (let $51 (lambda '($63) (Member $63 '"key") (Member $63 '"value")))
  (return (FromFlow (ExpandMap $50 $51)))
))) $16))
(let $18 '($8 '('"_id" '"871a2ad3-6c7e1403-75c121a9-19042db2") $11))
(let $19 (DqPhyStage '() (lambda '() (FromFlow $7)) $18))
(let $20 (DqCnParallelUnionAll (TDqOutput $17 '0)))
(let $21 (DqCnParallelUnionAll (TDqOutput $19 '0)))
(let $22 '('('"_logical_id" '1742) '('"_id" '"32b51c8f-8629a812-714e7b5f-8f2020fc") $11))
(let $23 (DqPhyStage '($20 $21) (lambda '($64 $65) (block '(
  (let $66 (Bool 'true))
  (let $67 (Sort (Extend (NarrowMap (ToFlow $64) $15) (NarrowMap (ToFlow $65) $15)) '($66 $66) (lambda '($69) '((Member $69 '"key") (Member $69 '"value")))))
  (let $68 (lambda '($70) (Member $70 '"key") (Member $70 '"value")))
  (return (FromFlow (ExpandMap $67 $68)))
))) $22))
(let $24 (DqCnMerge (TDqOutput $23 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $25 (DqPhyStage '($24) (lambda '($71) (FromFlow (NarrowMap (ToFlow $71) $15))) '('('"_logical_id" '1754) '('"_id" '"fa620e6c-7d20e0a5-91467452-7c515597"))))
(let $26 '($13 $17 $19 $23 $25))
(let $27 (DqCnResult (TDqOutput $25 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $26 '($27) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $10) '0 '0)) '('('"type" '"query"))))
)
