(
(let $1 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $2 (Bool 'true))
(let $3 '($2 $2 $2))
(let $4 '('"key" '"subkey" '"value"))
(let $5 (DataType 'String))
(let $6 '($5 $5 $5))
(let $7 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $1) '('SortDirections $3) '('SortMembers $4) '('SortedBy $4) '('SortedByTypes $6)))
(let $8 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $9 (YtStat '('Id '"Input") '('RecordsCount '"6") '('DataSize '"252") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $10 (YtTable '"Input" $7 $8 $9 '() (Void) (Void) '"/Root/plato"))
(let $11 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $10 $4 (Void) (Void))) '('('"unordered"))))))
(let $12 (DqReadWideWrap $11 '()))
(let $13 (String '"037"))
(let $14 '('"_logical_id" '2331))
(let $15 (StructType '('"key" $5) '('"subkey" $5) '('"value" $5)))
(let $16 '('"_wide_channels" $15))
(let $17 '($14 '('"_id" '"9d2dd73d-4d957efa-6b60c30d-b18a513a") $16))
(let $18 (DqPhyStage '() (lambda '() (FromFlow (WideFilter $12 (lambda '($35 $36 $37) (And (<= $35 $13) (>= $35 $13)))))) $17))
(let $19 (lambda '() (FromFlow (WideFilter $12 (lambda '($38 $39 $40) (And (>= $38 $13) (<= $38 $13)))))))
(let $20 '($14 '('"_id" '"95f983b-2ab99d95-9290b8bb-5866b512") $16))
(let $21 (DqPhyStage '() $19 $20))
(let $22 '($14 '('"_id" '"4b5d1906-a7f2de77-d9cc802c-5ccf8e85") $16))
(let $23 (DqPhyStage '() $19 $22))
(let $24 (DqCnParallelUnionAll (TDqOutput $18 '0)))
(let $25 (DqCnParallelUnionAll (TDqOutput $21 '0)))
(let $26 (DqCnParallelUnionAll (TDqOutput $23 '0)))
(let $27 '($24 $25 $26))
(let $28 (lambda '($47 $48 $49) (AsStruct '('"key" $47) '('"subkey" $48) '('"value" $49))))
(let $29 '('('"_logical_id" '2282) '('"_id" '"d2133745-bfd40068-ca3dd793-eaf77617") $16))
(let $30 (DqPhyStage $27 (lambda '($41 $42 $43) (block '(
  (let $44 (Extend (NarrowMap (ToFlow $41) $28) (NarrowMap (ToFlow $42) $28) (NarrowMap (ToFlow $43) $28)))
  (let $45 (Sort $44 '($2 $2) (lambda '($50) '((Member $50 '"key") (Member $50 '"subkey")))))
  (let $46 (lambda '($51) (Member $51 '"key") (Member $51 '"subkey") (Member $51 '"value")))
  (return (FromFlow (ExpandMap $45 $46)))
))) $29))
(let $31 (DqCnMerge (TDqOutput $30 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $32 (DqPhyStage '($31) (lambda '($52) (FromFlow (NarrowMap (ToFlow $52) $28))) '('('"_logical_id" '2294) '('"_id" '"e8e49b53-6183bc2-666ec564-85e101da"))))
(let $33 '($18 $21 $23 $30 $32))
(let $34 (DqCnResult (TDqOutput $32 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $33 '($34) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $15) '0 '0)) '('('"type" '"query"))))
)
