(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["value";["DataType";"String"]];["subkey";["DataType";"String"]];["key";["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 '('key '"subkey" '"value"))
(let $8 (YtReadTable! world $1 '((YtSection '((YtPath $6 $7 (Void) (Void))) '()))))
(let $9 (DqReadWideWrap $8 '()))
(let $10 (Bool 'true))
(let $11 (DataType 'String))
(let $12 '('key $11))
(let $13 '('"subkey" $11))
(let $14 '('"value" $11))
(let $15 (StructType $12 $13 $14))
(let $16 '('"_wide_channels" $15))
(let $17 '('('"_logical_id" '5831) '('"_id" '"b38de599-5c315b9a-2154c43-5ea665ea") $16))
(let $18 (DqPhyStage '() (lambda '() (FromFlow (WideSort $9 '('('1 $10))))) $17))
(let $19 '('('1 '"Asc")))
(let $20 (DqCnMerge (TDqOutput $18 '0) $19))
(let $21 (lambda '($90 $91 $92) (AsStruct '('key $90) '('"subkey" $91) '('"value" $92))))
(let $22 (DqPhyStage '($20) (lambda '($89) (FromFlow (NarrowMap (ToFlow $89) $21))) '('('"_logical_id" '5843) '('"_id" '"c724e89b-24f1816c-3ad53481-7c3a729f"))))
(let $23 '('"value" '"subkey" 'key))
(let $24 (DqCnResult (TDqOutput $22 '0) $23))
(let $25 '('('"type" '"generic")))
(let $26 (KqpPhysicalTx '($18 $22) '($24) '() $25))
(let $27 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"subkey" '"value") (Void) (Void))) '()))))
(let $28 (DqReadWideWrap $27 '()))
(let $29 (StructType $13 $14))
(let $30 '('"_wide_channels" $29))
(let $31 '('('"_logical_id" '5917) '('"_id" '"a19a24c6-417ca06f-3138278b-6695e697") $30))
(let $32 (DqPhyStage '() (lambda '() (FromFlow (WideSort $28 '('('0 $10))))) $31))
(let $33 '('('0 '"Asc")))
(let $34 (DqCnMerge (TDqOutput $32 '0) $33))
(let $35 (lambda '($94 $95) (AsStruct '('"subkey" $94) '('"value" $95))))
(let $36 (DqPhyStage '($34) (lambda '($93) (FromFlow (NarrowMap (ToFlow $93) $35))) '('('"_logical_id" '5929) '('"_id" '"8b1c0ef2-e754ca60-bb3a7d50-810efa8"))))
(let $37 '('"value" '"subkey"))
(let $38 (DqCnResult (TDqOutput $36 '0) $37))
(let $39 (KqpPhysicalTx '($32 $36) '($38) '() $25))
(let $40 '('('"_logical_id" '6008) '('"_id" '"f410ddc0-fe2517ba-12cdf8eb-7b82471f") $16))
(let $41 (DqPhyStage '() (lambda '() (FromFlow (WideSort $9 '('('1 $10))))) $40))
(let $42 (DqCnMerge (TDqOutput $41 '0) $19))
(let $43 (DqPhyStage '($42) (lambda '($96) (FromFlow (NarrowMap (ToFlow $96) $21))) '('('"_logical_id" '6020) '('"_id" '"76c29e3d-150f03-64547326-22780efc"))))
(let $44 (DqCnResult (TDqOutput $43 '0) $23))
(let $45 (KqpPhysicalTx '($41 $43) '($44) '() $25))
(let $46 '('('"_logical_id" '6094) '('"_id" '"7a104c31-7ac9cae8-12b1d365-40dde58e") $30))
(let $47 (DqPhyStage '() (lambda '() (FromFlow (WideSort $28 '('('0 $10))))) $46))
(let $48 (DqCnMerge (TDqOutput $47 '0) $33))
(let $49 (DqPhyStage '($48) (lambda '($97) (FromFlow (NarrowMap (ToFlow $97) $35))) '('('"_logical_id" '6106) '('"_id" '"49b66e00-c76911de-401ce61c-bf19f48d"))))
(let $50 (DqCnResult (TDqOutput $49 '0) $37))
(let $51 (KqpPhysicalTx '($47 $49) '($50) '() $25))
(let $52 (Int32 '2))
(let $53 (Int32 '1))
(let $54 (DataType 'Int32))
(let $55 '('"x" $54))
(let $56 '('"z" $54))
(let $57 (StructType $12 $13 $14 $55 $56))
(let $58 '('('"_logical_id" '6232) '('"_id" '"25b57bfb-adf05fb1-c52f18e3-df3a9f6f") '('"_wide_channels" $57)))
(let $59 (DqPhyStage '() (lambda '() (block '(
  (let $98 (lambda '($99 $100 $101) $99 $100 $101 $52 $53))
  (return (FromFlow (WideMap (WideSort (DqReadWideWrap $8 '()) '('('1 $10))) $98)))
))) $58))
(let $60 (DqCnMerge (TDqOutput $59 '0) $19))
(let $61 (DqPhyStage '($60) (lambda '($102) (FromFlow (NarrowMap (ToFlow $102) (lambda '($103 $104 $105 $106 $107) (AsStruct '('key $103) '('"subkey" $104) '('"value" $105) '('"x" $106) '('"z" $107)))))) '('('"_logical_id" '6244) '('"_id" '"6c80f613-872aaf36-474650ed-71723207"))))
(let $62 '('"z" '"x" '"value" '"subkey" 'key))
(let $63 (DqCnResult (TDqOutput $61 '0) $62))
(let $64 (KqpPhysicalTx '($59 $61) '($63) '() $25))
(let $65 (StructType $13 $14 $55 $56))
(let $66 '('('"_logical_id" '6361) '('"_id" '"8db0b482-209c6041-24de87f3-39bca61c") '('"_wide_channels" $65)))
(let $67 (DqPhyStage '() (lambda '() (block '(
  (let $108 (lambda '($109 $110) $109 $110 $52 $53))
  (return (FromFlow (WideMap (WideSort (DqReadWideWrap $27 '()) '('('0 $10))) $108)))
))) $66))
(let $68 (DqCnMerge (TDqOutput $67 '0) $33))
(let $69 (DqPhyStage '($68) (lambda '($111) (FromFlow (NarrowMap (ToFlow $111) (lambda '($112 $113 $114 $115) (AsStruct '('"subkey" $112) '('"value" $113) '('"x" $114) '('"z" $115)))))) '('('"_logical_id" '6373) '('"_id" '"57c7e087-5351c2f-9ffe6dd9-add2f03a"))))
(let $70 '('"z" '"x" '"value" '"subkey"))
(let $71 (DqCnResult (TDqOutput $69 '0) $70))
(let $72 (KqpPhysicalTx '($67 $69) '($71) '() $25))
(let $73 '('('"_logical_id" '6397) '('"_id" '"fcab2684-521a5fc6-29d32a82-d4baf3b1") '('"_partition_mode" '"single")))
(let $74 (DqPhyStage '() (lambda '() (Iterator (AsList (AsStruct '('"a" (Int32 '3)) '('"b" $52) '('"c" $53))))) $73))
(let $75 '('"c" '"b" '"a"))
(let $76 (DqCnResult (TDqOutput $74 '0) $75))
(let $77 (KqpPhysicalTx '($74) '($76) '() $25))
(let $78 '($26 $39 $45 $51 $64 $72 $77))
(let $79 (ListType $15))
(let $80 (KqpTxResultBinding $79 '0 '0))
(let $81 (ListType $29))
(let $82 (KqpTxResultBinding $81 '1 '0))
(let $83 (KqpTxResultBinding $79 '2 '0))
(let $84 (KqpTxResultBinding $81 '3 '0))
(let $85 (KqpTxResultBinding (ListType $57) '4 '0))
(let $86 (KqpTxResultBinding (ListType $65) '"5" '0))
(let $87 (KqpTxResultBinding (ListType (StructType '('"a" $54) '('"b" $54) '('"c" $54))) '"6" '0))
(let $88 '($80 $82 $83 $84 $85 $86 $87))
(return (KqpPhysicalQuery $78 $88 '('('"type" '"query"))))
)
