(
(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 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (DqReadWideWrap $8 '()) (lambda '($72 $73 $74) (AsStruct '('key $72) '('"subkey" $73) '('"value" $74)))))) '('('"_logical_id" '5656) '('"_id" '"89879d42-8081e11d-271c2940-f5bd3559"))))
(let $10 (DqCnUnionAll (TDqOutput $9 '0)))
(let $11 (DqPhyStage '($10) (lambda '($75) $75) '('('"_logical_id" '6096) '('"_id" '"45ee7090-75afded4-7e9d1b8d-ebf684e9"))))
(let $12 '('"value" '"subkey" 'key))
(let $13 (DqCnResult (TDqOutput $11 '0) $12))
(let $14 '('('"type" '"generic")))
(let $15 (KqpPhysicalTx '($9 $11) '($13) '() $14))
(let $16 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"subkey" '"value") (Void) (Void))) '()))))
(let $17 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (DqReadWideWrap $16 '()) (lambda '($76 $77) (AsStruct '('"subkey" $76) '('"value" $77)))))) '('('"_logical_id" '5695) '('"_id" '"15f056fc-9ab7e5df-45afdbef-83998996"))))
(let $18 (DqCnUnionAll (TDqOutput $17 '0)))
(let $19 (DqPhyStage '($18) (lambda '($78) $78) '('('"_logical_id" '6203) '('"_id" '"c77b74f7-904649bc-67e480da-ae5081f5"))))
(let $20 (DqCnResult (TDqOutput $19 '0) '('"value" '"subkey")))
(let $21 (KqpPhysicalTx '($17 $19) '($20) '() $14))
(let $22 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (DqReadWideWrap $8 '()) (lambda '($79 $80 $81) (AsStruct '('"a.key" $79) '('"a.subkey" $80) '('"a.value" $81)))))) '('('"_logical_id" '5780) '('"_id" '"c8405d94-4bad155a-d401cd1b-1b8773af"))))
(let $23 (DqCnUnionAll (TDqOutput $22 '0)))
(let $24 (DqPhyStage '($23) (lambda '($82) $82) '('('"_logical_id" '6307) '('"_id" '"e5b3aba7-319f98f9-11c8209e-7eed639d"))))
(let $25 '('"a.value" '"a.subkey" '"a.key"))
(let $26 (DqCnResult (TDqOutput $24 '0) $25))
(let $27 (KqpPhysicalTx '($22 $24) '($26) '() $14))
(let $28 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (DqReadWideWrap $16 '()) (lambda '($83 $84) (AsStruct '('"a.subkey" $83) '('"a.value" $84)))))) '('('"_logical_id" '5861) '('"_id" '"117c8804-9769bfab-90499c63-7305d559"))))
(let $29 (DqCnUnionAll (TDqOutput $28 '0)))
(let $30 (DqPhyStage '($29) (lambda '($85) $85) '('('"_logical_id" '6479) '('"_id" '"a10b4c5-b7e0825-3c993f8c-c331ecbb"))))
(let $31 (DqCnResult (TDqOutput $30 '0) '('"a.value" '"a.subkey")))
(let $32 (KqpPhysicalTx '($28 $30) '($31) '() $14))
(let $33 (Int32 '2))
(let $34 '('"x" $33))
(let $35 (Int32 '1))
(let $36 '('"z" $35))
(let $37 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (DqReadWideWrap $8 '()) (lambda '($86 $87 $88) (AsStruct '('"a.key" $86) '('"a.subkey" $87) '('"a.value" $88) $34 $36))))) '('('"_logical_id" '5947) '('"_id" '"f8189724-31e148dd-753fd1e8-65915af3"))))
(let $38 (DqCnUnionAll (TDqOutput $37 '0)))
(let $39 (DqPhyStage '($38) (lambda '($89) $89) '('('"_logical_id" '6637) '('"_id" '"43a474f8-8fb0d5f7-821eb7a1-a0730bd4"))))
(let $40 '('"z" '"x" '"a.value" '"a.subkey" '"a.key"))
(let $41 (DqCnResult (TDqOutput $39 '0) $40))
(let $42 (KqpPhysicalTx '($37 $39) '($41) '() $14))
(let $43 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (DqReadWideWrap $16 '()) (lambda '($90 $91) (AsStruct '('"a.subkey" $90) '('"a.value" $91) $34 $36))))) '('('"_logical_id" '6028) '('"_id" '"82a617d4-ab204481-b577c9e3-b909491d"))))
(let $44 (DqCnUnionAll (TDqOutput $43 '0)))
(let $45 (DqPhyStage '($44) (lambda '($92) $92) '('('"_logical_id" '6815) '('"_id" '"341f4634-1fefda6f-b3252870-4296f060"))))
(let $46 '('"z" '"x" '"a.value" '"a.subkey"))
(let $47 (DqCnResult (TDqOutput $45 '0) $46))
(let $48 (KqpPhysicalTx '($43 $45) '($47) '() $14))
(let $49 '('('"_logical_id" '6054) '('"_id" '"b42ef5d-88f07481-2085be4a-aea4c9da") '('"_partition_mode" '"single")))
(let $50 (DqPhyStage '() (lambda '() (Iterator (AsList (AsStruct '('"a" (Int32 '3)) '('"b" $33) '('"c" $35))))) $49))
(let $51 '('"c" '"b" '"a"))
(let $52 (DqCnResult (TDqOutput $50 '0) $51))
(let $53 (KqpPhysicalTx '($50) '($52) '() $14))
(let $54 '($15 $21 $27 $32 $42 $48 $53))
(let $55 (DataType 'String))
(let $56 '('"subkey" $55))
(let $57 '('"value" $55))
(let $58 (KqpTxResultBinding (ListType (StructType '('key $55) $56 $57)) '0 '0))
(let $59 (KqpTxResultBinding (ListType (StructType $56 $57)) '1 '0))
(let $60 '('"a.key" $55))
(let $61 '('"a.subkey" $55))
(let $62 '('"a.value" $55))
(let $63 (KqpTxResultBinding (ListType (StructType $60 $61 $62)) '2 '0))
(let $64 (KqpTxResultBinding (ListType (StructType $61 $62)) '3 '0))
(let $65 (DataType 'Int32))
(let $66 '('"x" $65))
(let $67 '('"z" $65))
(let $68 (KqpTxResultBinding (ListType (StructType $60 $61 $62 $66 $67)) '4 '0))
(let $69 (KqpTxResultBinding (ListType (StructType $61 $62 $66 $67)) '"5" '0))
(let $70 (KqpTxResultBinding (ListType (StructType '('"a" $65) '('"b" $65) '('"c" $65))) '"6" '0))
(let $71 '($58 $59 $63 $64 $68 $69 $70))
(return (KqpPhysicalQuery $54 $71 '('('"type" '"query"))))
)
