(
(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" '1070) '('"_id" '"61948b8a-a1028c0a-d2531134-26ee4db9") '('"_wide_channels" (StructType))))
(let $8 (DqPhyStage '() (lambda '() (block '(
  (let $17 (YtReadTable! world $1 '((YtSection '((YtPath $6 '() (Void) (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $17 '())))
))) $7))
(let $9 (DqCnBroadcast (TDqOutput $8 '0)))
(let $10 (StructType '('"d.key" (DataType 'String))))
(let $11 '('('"_logical_id" '1148) '('"_id" '"a2c90bba-976198a4-f74642f8-c6dd019b") '('"_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) (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" '1160) '('"_id" '"1e9ceb23-95ce97e2-3784e62c-c99abc18"))))
(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"))))
)
