(
(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 (YtStat '('Id '"Input") '('RecordsCount '"14") '('DataSize '"614") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 (DataType 'String))
(let $8 '('('"_logical_id" '1867) '('"_id" '"d109b85f-353bf526-9923b49d-4ab75019") '('"_wide_channels" (StructType '('"key" $7) '('"subkey" $7)))))
(let $9 (DqPhyStage '() (lambda '() (block '(
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $8))
(let $10 (DqCnBroadcast (TDqOutput $9 '0)))
(let $11 (lambda '($43 $44) $44 $43))
(let $12 (ListType $7))
(let $13 '('kk $7))
(let $14 '('('"_logical_id" '2059) '('"_id" '"2a50dfa-994f3b8b-8f5bcdbe-53092fd4") '('"_wide_channels" (StructType '('_yql_agg_0 $12) $13))))
(let $15 (DqPhyStage '($10) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($28 $29) $29) (lambda '($30 $31) (AsStruct '('"key" $30) '('"subkey" $31))) $26))
  (return (WideFromBlocks (DqPhyHashCombine (WideToBlocks (FromFlow (FlatMap $27 (lambda '($32) (block '(
    (let $33 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $33 '()) $32 'Inner '('0) '('"subkey") '('0 '0) '('"key" '1) '('"t1.key") '('"t2.subkey")))
  )))))) '-1073741824 (lambda '($34 $35) $34) (lambda '($36 $37 $38) (AsList $38)) (lambda '($39 $40 $41 $42) (Insert $42 $41)) $11)))
))) $14))
(let $16 (DqCnHashShuffle (TDqOutput $15 '0) '('1) '0 '"HashV2"))
(let $17 (StructType '('"column1" $12) $13))
(let $18 '('('"_logical_id" '2638) '('"_id" '"c04367c-c64d5175-f22c95bc-51a3dbca") '('"_wide_channels" $17)))
(let $19 (DqPhyStage '($16) (lambda '($45) (block '(
  (let $46 (WideCombiner (ToFlow $45) '"" (lambda '($49 $50) $50) (lambda '($51 $52 $53) $52) (lambda '($54 $55 $56 $57) (Extend $55 $57)) $11))
  (let $47 (Bool 'true))
  (let $48 (lambda '($58 $59) (block '(
    (let $60 (Sort $58 $47 (lambda '($61) $61)))
    (return $60 $59)
  ))))
  (return (FromFlow (WideMap (WideSort $46 '('('1 $47))) $48)))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('1 '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($62) (FromFlow (NarrowMap (ToFlow $62) (lambda '($63 $64) (AsStruct '('"column1" $63) '('kk $64)))))) '('('"_logical_id" '2650) '('"_id" '"1f17543c-89c4a29d-9418a140-c8f59b93"))))
(let $22 '($9 $15 $19 $21))
(let $23 (DqCnResult (TDqOutput $21 '0) '('kk '"column1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $17) '0 '0)) '('('"type" '"query"))))
)
