(
(let $1 '('"key" '"subkey" '"value"))
(let $2 (DataType 'Int32))
(let $3 (DataType 'String))
(let $4 (StructType '('"key" $2) '('"subkey" $3) '('"value" $3)))
(let $5 '('('"_logical_id" '753) '('"_id" '"fc1cc176-aebb5684-52794c2e-955dda5b") '('"_wide_channels" $4)))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $10 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $11 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $10)))
  (let $12 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $13 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"167") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $14 (YtTable '"Input" $11 $12 $13 '() (Void) (Void) '"/Root/plato"))
  (let $15 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $14 $1 (Void) (Void))) '()))))
  (let $16 (Sort (NarrowMap (DqReadWideWrap $15 '()) (lambda '($18 $19 $20) (AsStruct '('"key" (Coalesce (SafeCast $18 (OptionalType $2)) (Int32 '0))) '('"subkey" $19) '('"value" $20)))) '((Bool 'false) (Bool 'true)) (lambda '($21) '((Member $21 '"key") (Member $21 '"subkey")))))
  (let $17 (lambda '($22) (Member $22 '"key") (Member $22 '"subkey") (Member $22 '"value")))
  (return (FromFlow (ExpandMap $16 $17)))
))) $5))
(let $7 (DqCnMerge (TDqOutput $6 '0) '('('0 '"Desc") '('1 '"Asc"))))
(let $8 (DqPhyStage '($7) (lambda '($23) (FromFlow (NarrowMap (ToFlow $23) (lambda '($24 $25 $26) (AsStruct '('"key" $24) '('"subkey" $25) '('"value" $26)))))) '('('"_logical_id" '765) '('"_id" '"312b123e-fff5fede-efe0514f-bfbb97a4"))))
(let $9 (DqCnResult (TDqOutput $8 '0) $1))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($6 $8) '($9) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $4) '0 '0)) '('('"type" '"query"))))
)
