(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '('NativeYtTypeFlags '0))
(let $3 '('StrictSchema '1))
(let $4 '('UniqueKeys '0))
(let $5 (Bool 'true))
(let $6 '('"key"))
(let $7 '('SortMembers $6))
(let $8 (DataType 'String))
(let $9 '('SortedByTypes '($8)))
(let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
(let $11 '('ChunkCount '1))
(let $12 '('ModifyTime '0))
(let $13 '('Revision '0))
(let $14 (YtStat '('Id '"Input1") '('RecordsCount '"6") '('DataSize '"252") $11 $12 $13))
(let $15 '('"key" $8))
(let $16 (StructType $15 '('"value" $8)))
(let $17 '('('"unordered")))
(let $18 '('('"_logical_id" '2021) '('"_id" '"ef54e2c7-c2a30edf-b810b654-e3081757") '('"_wide_channels" $16)))
(let $19 (DqPhyStage '() (lambda '() (block '(
  (let $47 '@@["StructType";[["key";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $48 (YqlRowSpec $2 $3 $4 '('Type $47) '('SortDirections '($5)) $7 '('SortedBy $6) $9))
  (let $49 (YtTable '"Input1" $48 $10 $14 '('('"userschema" $16)) (Void) (Void) '"/Root/plato"))
  (let $50 (YtReadTable! world $1 '((YtSection '((YtPath $49 '('"key" '"value") (Void) (Void))) $17))))
  (return (FromFlow (WideSort (DqReadWideWrap $50 '()) '('('0 $5)))))
))) $18))
(let $20 '('('0 '"Asc")))
(let $21 (DqCnMerge (TDqOutput $19 '0) $20))
(let $22 (DqPhyStage '($21) (lambda '($51) (FromFlow (NarrowMap (ToFlow $51) (lambda '($52 $53) (AsStruct '('"key" $52) '('"value" $53)))))) '('('"_logical_id" '2033) '('"_id" '"9a2ae8db-a934315c-53366a5b-7daf5083"))))
(let $23 (DqCnResult (TDqOutput $22 '0) '()))
(let $24 '('('"type" '"generic")))
(let $25 (KqpPhysicalTx '($19 $22) '($23) '() $24))
(let $26 '('"subkey" $8))
(let $27 (StructType '('"key" (OptionalType $8)) $26))
(let $28 '('"key" '"subkey"))
(let $29 '('('"_logical_id" '2107) '('"_id" '"257fb959-adfa2a2b-279887e7-4766d61") '('"_wide_channels" $27)))
(let $30 (DqPhyStage '() (lambda '() (block '(
  (let $54 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["DataType";"String"]]]]@@)
  (let $55 (YqlRowSpec $2 $3 $4 '('Type $54)))
  (let $56 (YtTable '"Input1" $55 $10 $14 '('('"userschema" $27)) (Void) (Void) '"/Root/plato"))
  (let $57 (YtReadTable! world $1 '((YtSection '((YtPath $56 $28 (Void) (Void))) '()))))
  (return (FromFlow (WideSort (DqReadWideWrap $57 '()) '('('0 $5)))))
))) $29))
(let $31 (DqCnMerge (TDqOutput $30 '0) $20))
(let $32 (DqPhyStage '($31) (lambda '($58) (FromFlow (NarrowMap (ToFlow $58) (lambda '($59 $60) (AsStruct '('"key" $59) '('"subkey" $60)))))) '('('"_logical_id" '2119) '('"_id" '"d1eba182-81ad9255-bdfb40a7-488f3f6a"))))
(let $33 (DqCnResult (TDqOutput $32 '0) '()))
(let $34 (KqpPhysicalTx '($30 $32) '($33) '() $24))
(let $35 (StructType $15 $26))
(let $36 '('('"_logical_id" '2193) '('"_id" '"ddc28e84-f5075bca-f209ac4a-8b2fa843") '('"_wide_channels" $35)))
(let $37 (DqPhyStage '() (lambda '() (block '(
  (let $61 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]]]]@@)
  (let $62 (Bool 'false))
  (let $63 (YqlRowSpec $2 $3 $4 '('Type $61) '('SortDirections '($62)) $7 '('SortedBy '('"_yql_column_0")) $9))
  (let $64 (YtStat '('Id '"Input2") '('RecordsCount '"4") '('DataSize '"530") $11 $12 $13))
  (let $65 (YtTable '"Input2" $63 $10 $64 '('('"userschema" $35)) (Void) (Void) '"/Root/plato"))
  (let $66 (YtReadTable! world $1 '((YtSection '((YtPath $65 $28 (Void) (Void))) $17))))
  (return (FromFlow (WideSort (DqReadWideWrap $66 '()) '('('0 $62)))))
))) $36))
(let $38 (DqCnMerge (TDqOutput $37 '0) '('('0 '"Desc"))))
(let $39 (DqPhyStage '($38) (lambda '($67) (FromFlow (NarrowMap (ToFlow $67) (lambda '($68 $69) (AsStruct '('"key" $68) '('"subkey" $69)))))) '('('"_logical_id" '2205) '('"_id" '"8dff5b9f-be34bc08-a6180277-693dc978"))))
(let $40 (DqCnResult (TDqOutput $39 '0) '()))
(let $41 (KqpPhysicalTx '($37 $39) '($40) '() $24))
(let $42 '($25 $34 $41))
(let $43 (KqpTxResultBinding (ListType $16) '0 '0))
(let $44 (KqpTxResultBinding (ListType $27) '1 '0))
(let $45 (KqpTxResultBinding (ListType $35) '"2" '0))
(let $46 '($43 $44 $45))
(return (KqpPhysicalQuery $42 $46 '('('"type" '"query"))))
)
