(
(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 (StructType '('"key" $7) '('"value" (DataType 'String))))
(let $9 '('"_wide_channels" $8))
(let $10 '('('"_logical_id" '1275) '('"_id" '"55586844-661ae9dc-fccddb3-55ff563d") $9))
(let $11 (DqPhyStage '() (lambda '() (block '(
  (let $23 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key") (Void) (Void))) '()))))
  (let $24 (lambda '($25) (SafeCast $25 $7) (String '"")))
  (return (FromFlow (WideMap (DqReadWideWrap $23 '()) $24)))
))) $10))
(let $12 '('('"_logical_id" '1300) '('"_id" '"40f29672-e2ad4fbc-13eeff57-fd819cbe") $9))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $26 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"value") (Void) (Void))) '()))))
  (let $27 (lambda '($28) (Just (Int32 '0)) $28))
  (return (FromFlow (WideMap (DqReadWideWrap $26 '()) $27)))
))) $12))
(let $14 (DqCnParallelUnionAll (TDqOutput $11 '0)))
(let $15 (DqCnParallelUnionAll (TDqOutput $13 '0)))
(let $16 (lambda '($34 $35) (AsStruct '('"key" $34) '('"value" $35))))
(let $17 '('('"_logical_id" '1386) '('"_id" '"ad7eff71-3ea80844-f47f5ca2-98794017") $9))
(let $18 (DqPhyStage '($14 $15) (lambda '($29 $30) (block '(
  (let $31 (Bool 'true))
  (let $32 (Sort (Extend (NarrowMap (ToFlow $29) $16) (NarrowMap (ToFlow $30) $16)) '($31 $31) (lambda '($36) '((Member $36 '"key") (Member $36 '"value")))))
  (let $33 (lambda '($37) (Member $37 '"key") (Member $37 '"value")))
  (return (FromFlow (ExpandMap $32 $33)))
))) $17))
(let $19 (DqCnMerge (TDqOutput $18 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $20 (DqPhyStage '($19) (lambda '($38) (FromFlow (NarrowMap (ToFlow $38) $16))) '('('"_logical_id" '1398) '('"_id" '"afc3ed92-538d9f23-773894c8-a9e11536"))))
(let $21 '($11 $13 $18 $20))
(let $22 (DqCnResult (TDqOutput $20 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $21 '($22) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
