(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["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 (OptionalType (DataType 'Int32)))
(let $8 (DataType 'String))
(let $9 (OptionalType $8))
(let $10 (StructType '('"key" $8) '('"subkey" $7) '('"value" $9)))
(let $11 '('"_wide_channels" $10))
(let $12 '('('"_logical_id" '1478) '('"_id" '"74027d9e-a15afbba-115cfdce-8d916caa") $11))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $26 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $27 (lambda '($28 $29) $28 (SafeCast $29 $7) (Nothing $9)))
  (return (FromFlow (WideMap (DqReadWideWrap $26 '()) $27)))
))) $12))
(let $14 '('('"_logical_id" '1506) '('"_id" '"859709eb-d4704f6e-8f790ef9-644e9b1f") $11))
(let $15 (DqPhyStage '() (lambda '() (block '(
  (let $30 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"value") (Void) (Void))) '()))))
  (let $31 (lambda '($32 $33) $32 (Nothing $7) (Just $33)))
  (return (FromFlow (WideMap (DqReadWideWrap $30 '()) $31)))
))) $14))
(let $16 (DqCnParallelUnionAll (TDqOutput $13 '0)))
(let $17 (DqCnParallelUnionAll (TDqOutput $15 '0)))
(let $18 (lambda '($40 $41 $42) (AsStruct '('"key" $40) '('"subkey" $41) '('"value" $42))))
(let $19 '('('"_logical_id" '1600) '('"_id" '"a9b40066-80f9f918-f3b53216-80cd789b") $11))
(let $20 (DqPhyStage '($16 $17) (lambda '($34 $35) (block '(
  (let $36 (Bool 'true))
  (let $37 '($36 $36 $36))
  (let $38 (Sort (Extend (NarrowMap (ToFlow $34) $18) (NarrowMap (ToFlow $35) $18)) $37 (lambda '($43) '((Member $43 '"key") (Member $43 '"subkey") (Member $43 '"value")))))
  (let $39 (lambda '($44) (Member $44 '"key") (Member $44 '"subkey") (Member $44 '"value")))
  (return (FromFlow (ExpandMap $38 $39)))
))) $19))
(let $21 '('('0 '"Asc") '('1 '"Asc") '('"2" '"Asc")))
(let $22 (DqCnMerge (TDqOutput $20 '0) $21))
(let $23 (DqPhyStage '($22) (lambda '($45) (FromFlow (NarrowMap (ToFlow $45) $18))) '('('"_logical_id" '1612) '('"_id" '"2a2da86e-f57b63c7-9b2ac712-6b8dd130"))))
(let $24 '($13 $15 $20 $23))
(let $25 (DqCnResult (TDqOutput $23 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $24 '($25) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $10) '0 '0)) '('('"type" '"query"))))
)
