(
(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 '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $6 (YtTable '"Input" $3 $4 $5 '() (Void) (Void) '"/Root/plato"))
(let $7 '('('"_logical_id" '1066) '('"_id" '"4c1422bf-f4ef8373-801faa4f-73edce29") '('"_wide_channels" (StructType))))
(let $8 (DqPhyStage '() (lambda '() (block '(
  (let $17 (YtReadTable! world $1 '((YtSection '((YtPath $6 '() (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $17 '())))
))) $7))
(let $9 (DqCnBroadcast (TDqOutput $8 '0)))
(let $10 (StructType '('"d.key" (DataType 'String))))
(let $11 '('('"_logical_id" '1144) '('"_id" '"a7904c5e-a5cbc77-3a20901-80ef62c") '('"_wide_channels" $10)))
(let $12 (DqPhyStage '($9) (lambda '($18) (block '(
  (let $19 (Condense1 (NarrowMap (ToFlow $18) (lambda '() (AsStruct))) (lambda '($21) (AsList $21)) (lambda '($22 $23) (Bool '"false")) (lambda '($24 $25) (Append $25 $24))))
  (let $20 (Sort (FlatMap $19 (lambda '($26) (block '(
    (let $27 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
    (return (NarrowFlatMap (DqReadWideWrap $27 '()) (lambda '($28) (Map (Collect $26) (lambda '($29) (AsStruct '('"d.key" $28)))))))
  )))) (Bool 'true) (lambda '($30) (Member $30 '"d.key"))))
  (return (FromFlow (ExpandMap $20 (lambda '($31) (Member $31 '"d.key")))))
))) $11))
(let $13 (DqCnMerge (TDqOutput $12 '0) '('('0 '"Asc"))))
(let $14 (DqPhyStage '($13) (lambda '($32) (FromFlow (NarrowMap (ToFlow $32) (lambda '($33) (AsStruct '('"d.key" $33)))))) '('('"_logical_id" '1156) '('"_id" '"afc6ddc4-ea7b1997-91d25bcf-b729892b"))))
(let $15 '($8 $12 $14))
(let $16 (DqCnResult (TDqOutput $14 '0) '('"d.key")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $15 '($16) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $10) '0 '0)) '('('"type" '"query"))))
)
