(
(let $1 (DataType 'String))
(let $2 (StructType '('"key" $1) '('"subkey" $1) '('"value" $1)))
(let $3 '('('"_logical_id" '650) '('"_id" '"26cfb743-a60c1d56-ba36810-c431dbd") '('"_wide_channels" $2)))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $8 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $9 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $8)))
  (let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $11 (YtStat '('Id '"Input") '('RecordsCount '"9") '('DataSize '"369") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $12 (YtTable '"Input" $9 $10 $11 '() (Void) (Void) '"/Root/plato"))
  (let $13 '('"key" '"subkey" '"value"))
  (let $14 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $12 $13 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $14 '())))
))) $3))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (DqPhyStage '($5) (lambda '($15) (block '(
  (let $16 (Sort (NarrowMap (ToFlow $15) (lambda '($17 $18 $19) (block '(
    (let $20 (DataType 'Double))
    (let $21 (OptionalType $20))
    (let $22 (IfPresent (SafeCast $18 $21) (lambda '($23) (block '(
      (let $24 '($20 '"" '1))
      (let $25 (CallableType '() '($20) $24 $24))
      (let $26 (Udf '"Math.Pow" (Void) (VoidType) '"" $25 (VoidType) '"" '('('"strict"))))
      (return (Just (Apply $26 $23 (Convert (Int32 '"2") $20))))
    ))) (Nothing $21)))
    (return (AsStruct '('_yql_sys_order_by $22) '('"key" $17) '('"subkey" $18) '('"value" $19)))
  )))) (Bool 'true) (lambda '($27) (Member $27 '_yql_sys_order_by))))
  (return (FromFlow (OrderedMap $16 (lambda '($28) (AsStruct '('"key" (Member $28 '"key")) '('"subkey" (Member $28 '"subkey")) '('"value" (Member $28 '"value")))))))
))) '('('"_logical_id" '685) '('"_id" '"e4231b1f-b6d38342-eb76dbbb-4a92855d"))))
(let $7 (DqCnResult (TDqOutput $6 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
