(
(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 (OptionalType (DataType 'Int32)))
(let $8 (String '""))
(let $9 (DataType 'String))
(let $10 (StructType '('"key" $7) '('"subkey" $9) '('"value" $9)))
(let $11 '('"_wide_channels" $10))
(let $12 '('('"_logical_id" '1842) '('"_id" '"cb5da692-cde675f0-2f05142c-b8220baf") $11))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $31 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
  (let $32 (lambda '($33) (SafeCast $33 $7) $8 $8))
  (return (FromFlow (WideMap (DqReadWideWrap $31 '()) $32)))
))) $12))
(let $14 (Just (Int32 '1)))
(let $15 '('('"_logical_id" '1867) '('"_id" '"e6ba59fc-bc1bdace-62ada348-126b6b7a") $11))
(let $16 (DqPhyStage '() (lambda '() (block '(
  (let $34 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"subkey") (Void) (Void))) '()))))
  (let $35 (lambda '($36) $14 $36 $8))
  (return (FromFlow (WideMap (DqReadWideWrap $34 '()) $35)))
))) $15))
(let $17 '('('"_logical_id" '1892) '('"_id" '"208a23e1-14cbe25d-dc1a0f02-773f4213") $11))
(let $18 (DqPhyStage '() (lambda '() (block '(
  (let $37 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"value") (Void) (Void))) '()))))
  (let $38 (lambda '($39) $14 $8 $39))
  (return (FromFlow (WideMap (DqReadWideWrap $37 '()) $38)))
))) $17))
(let $19 (DqCnParallelUnionAll (TDqOutput $13 '0)))
(let $20 (DqCnParallelUnionAll (TDqOutput $16 '0)))
(let $21 (DqCnParallelUnionAll (TDqOutput $18 '0)))
(let $22 '($19 $20 $21))
(let $23 (lambda '($48 $49 $50) (AsStruct '('"key" $48) '('"subkey" $49) '('"value" $50))))
(let $24 '('('"_logical_id" '1996) '('"_id" '"5862e84f-d4e634c4-3d3042ce-3da57b6a") $11))
(let $25 (DqPhyStage $22 (lambda '($40 $41 $42) (block '(
  (let $43 (Extend (NarrowMap (ToFlow $40) $23) (NarrowMap (ToFlow $41) $23) (NarrowMap (ToFlow $42) $23)))
  (let $44 (Bool 'true))
  (let $45 '($44 $44 $44))
  (let $46 (Sort $43 $45 (lambda '($51) '((Member $51 '"key") (Member $51 '"subkey") (Member $51 '"value")))))
  (let $47 (lambda '($52) (Member $52 '"key") (Member $52 '"subkey") (Member $52 '"value")))
  (return (FromFlow (ExpandMap $46 $47)))
))) $24))
(let $26 '('('0 '"Asc") '('1 '"Asc") '('"2" '"Asc")))
(let $27 (DqCnMerge (TDqOutput $25 '0) $26))
(let $28 (DqPhyStage '($27) (lambda '($53) (FromFlow (NarrowMap (ToFlow $53) $23))) '('('"_logical_id" '2008) '('"_id" '"843ee79e-c3849ece-bb085c68-a0e2999b"))))
(let $29 '($13 $16 $18 $25 $28))
(let $30 (DqCnResult (TDqOutput $28 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $29 '($30) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $10) '0 '0)) '('('"type" '"query"))))
)
