(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $3 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $2)))
(let $4 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $5 '('RecordsCount '"4"))
(let $6 '('DataSize '"166"))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 (DataType 'String))
(let $11 '('"key" $10))
(let $12 (StructType $11 '('"subkey" $10) '('"value" $10)))
(let $13 '('"_wide_channels" $12))
(let $14 '('('"_logical_id" '1712) '('"_id" '"e36cafca-9551ff04-523f681d-21f3e6d0") $13))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $33 (YtStat '('Id '"Input") $5 $6 $7 $8 $9))
  (let $34 (YtTable '"Input" $3 $4 $33 '() (Void) (Void) '"/Root/plato"))
  (let $35 '('"key" '"subkey" '"value"))
  (let $36 (YtReadTable! world $1 '((YtSection '((YtPath $34 $35 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $36 '())))
))) $14))
(let $16 '('"key"))
(let $17 (lambda '($40) $40))
(let $18 '('"_wide_channels" (StructType $11)))
(let $19 '('('"_logical_id" '1815) '('"_id" '"847d70c0-43c15446-b2d97f85-5850b8e") $18))
(let $20 (DqPhyStage '() (lambda '() (block '(
  (let $37 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
  (let $38 (YtTable '"Input1" $3 $4 $37 '() (Void) (Void) '"/Root/plato"))
  (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $38 $16 (Void) (Void))) '()))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $39 '()))) '-1073741824 $17 (lambda '($41 $42) $41) (lambda '($43 $44 $45) $45) (lambda '($46 $47) $47)))
))) $19))
(let $21 '('0))
(let $22 (DqCnHashShuffle (TDqOutput $20 '0) $21 '0 '"HashV2"))
(let $23 '('('"_logical_id" '1904) '('"_id" '"11e40f48-fae3ee20-72d1bb45-e15cc613") '('"_partition_mode" '"aggregate") $18))
(let $24 (DqPhyStage '($22) (lambda '($48) (block '(
  (let $49 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $48)) $17 (lambda '($51) (AsStruct '('"key" $51))) '('Auto 'Many)))
  (let $50 (Condense1 (OrderedFlatMap $49 (lambda '($52) (OrderedFlatMap (DictPayloads $52) (lambda '($53) $53)))) (lambda '($54) (Member $54 '"key")) (lambda '($55 $56) (AggrNotEquals (Member $55 '"key") $56)) (lambda '($57 $58) $58)))
  (return (FromFlow (ExpandMap $50 $17)))
))) $23))
(let $25 (DqCnUnionAll (TDqOutput $15 '0)))
(let $26 (DqCnUnionAll (TDqOutput $24 '0)))
(let $27 '('('"_logical_id" '2221) '('"_id" '"cc297e32-4dd6c54a-ef8a5694-9f53972f") $13))
(let $28 (DqPhyStage '($25 $26) (lambda '($59 $60) (block '(
  (let $61 '('One 'Hashed 'Compact))
  (let $62 (NarrowSqueezeToDict (ToFlow $60) $17 (lambda '($63) (Void)) $61))
  (return (FromFlow (WideSort (FlatMap $62 (lambda '($64) (block '(
    (let $65 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (ToFlow $59) $64 '"LeftSemi" $21 $16 $65 '() $16 $16))
  )))) '('('0 (Bool 'true))))))
))) $27))
(let $29 (DqCnMerge (TDqOutput $28 '0) '('('0 '"Asc"))))
(let $30 (DqPhyStage '($29) (lambda '($66) (FromFlow (NarrowMap (ToFlow $66) (lambda '($67 $68 $69) (AsStruct '('"key" $67) '('"subkey" $68) '('"value" $69)))))) '('('"_logical_id" '2233) '('"_id" '"7548a7fc-30856d8b-48601efd-8933034d"))))
(let $31 '($15 $20 $24 $28 $30))
(let $32 (DqCnResult (TDqOutput $30 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $31 '($32) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $12) '0 '0)) '('('"type" '"query"))))
)
