(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '('NativeYtTypeFlags '0))
(let $3 '('StrictSchema '1))
(let $4 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $5 '('Type $4))
(let $6 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 '('"key"))
(let $11 (DataType 'String))
(let $12 (StructType '('"key" $11)))
(let $13 '('"_wide_channels" $12))
(let $14 '('('"_logical_id" '1003) '('"_id" '"d88705cd-62d1cbf1-cc977362-716b0c40") $13))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $24 (YqlRowSpec $2 $3 '('UniqueKeys '0) $5))
  (let $25 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") $7 $8 $9))
  (let $26 (YtTable '"Input" $24 $6 $25 '() (Void) (Void) '"/Root/plato"))
  (let $27 (YtReadTable! world $1 '((YtSection '((YtPath $26 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $27 '())))
))) $14))
(let $16 (DqCnBroadcast (TDqOutput $15 '0)))
(let $17 (lambda '($33) (AsStruct '('"key" $33))))
(let $18 '('('"_logical_id" '1183) '('"_id" '"74a0f661-2ab7c8a3-63e7d253-be3309e9") $13))
(let $19 (DqPhyStage '($16) (lambda '($28) (block '(
  (let $29 '('Many 'Hashed 'Compact))
  (let $30 (NarrowSqueezeToDict (ToFlow $28) (lambda '($32) $32) $17 $29))
  (let $31 (Bool 'true))
  (return (FromFlow (WideSort (FlatMap $30 (lambda '($34) (block '(
    (let $35 (YqlRowSpec $2 $3 '('UniqueKeys '1) $5 '('SortDirections '($31)) '('SortMembers $10) '('SortedBy $10) '('SortedByTypes '($11))))
    (let $36 (YtStat '('Id '"InputSorted") '('RecordsCount '"8") '('DataSize '"336") $7 $8 $9))
    (let $37 (YtTable '"InputSorted" $35 $6 $36 '() (Void) (Void) '"/Root/plato"))
    (let $38 (YtReadTable! world $1 '((YtSection '((YtPath $37 $10 (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $38 '()) $34 'Inner '('0) $10 '('0 '0) '() '('"a.key") '('"b.key")))
  )))) '('('0 $31)))))
))) $18))
(let $20 (DqCnMerge (TDqOutput $19 '0) '('('0 '"Asc"))))
(let $21 (DqPhyStage '($20) (lambda '($39) (FromFlow (NarrowMap (ToFlow $39) $17))) '('('"_logical_id" '1195) '('"_id" '"22057b2b-9ab61040-1b7f55ce-425c3d5a"))))
(let $22 '($15 $19 $21))
(let $23 (DqCnResult (TDqOutput $21 '0) $10))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $12) '0 '0)) '('('"type" '"query"))))
)
