(
(let $1 (DataType 'Uint32))
(let $2 (OptionalType $1))
(let $3 (StructType '('"key" $2) '('"zz" $2)))
(let $4 '('('"_logical_id" '1270) '('"_id" '"8cbe2938-771157f2-3f2ab1ca-ba3ccc0") '('"_wide_channels" $3)))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $9 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $10 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $9)))
  (let $11 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $12 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $13 (YtTable '"Input" $10 $11 $12 '() (Void) (Void) '"/Root/plato"))
  (let $14 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $13 '('"key" '"value") (Void) (Void))) '()))))
  (let $15 (Bool 'true))
  (let $16 (Sort (NarrowMap (DqReadWideWrap $14 '()) (lambda '($18 $19) (block '(
    (let $20 (Uint32 '0))
    (return (AsStruct '('"key" (Just (Coalesce (SafeCast $18 $2) $20))) '('"zz" (Just (IfPresent (ByteAt $19 $20) (lambda '($21) (SafeCast $21 $1)) (Uint32 '256))))))
  )))) '($15 $15) (lambda '($22) '((Member $22 '"key") (Member $22 '"zz")))))
  (let $17 (lambda '($23) (Member $23 '"key") (Member $23 '"zz")))
  (return (FromFlow (ExpandMap $16 $17)))
))) $4))
(let $6 (DqCnMerge (TDqOutput $5 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $7 (DqPhyStage '($6) (lambda '($24) (FromFlow (NarrowMap (ToFlow $24) (lambda '($25 $26) (AsStruct '('"key" $25) '('"zz" $26)))))) '('('"_logical_id" '1282) '('"_id" '"f7c57cad-a71475b8-41410e9-5c39c611"))))
(let $8 (DqCnResult (TDqOutput $7 '0) '('"key" '"zz")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($5 $7) '($8) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $3) '0 '0)) '('('"type" '"query"))))
)
