(
(let $1 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $2 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $1)))
(let $3 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $4 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $5 (YtTable '"Input" $2 $3 $4 '() (Void) (Void) '"/Root/plato"))
(let $6 '('"key"))
(let $7 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $5 $6 (Void) (Void))) '()))))
(let $8 (Bool 'true))
(let $9 (lambda '($48) (Member $48 '"key")))
(let $10 (lambda '($49) (Member $49 '"key")))
(let $11 (StructType '('"key" (DataType 'String))))
(let $12 '('"_wide_channels" $11))
(let $13 '('('"_logical_id" '1436) '('"_id" '"98ba5a79-e38e9a05-6fb542f8-a4d0cb98") $12))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $46 (Sort (NarrowMap (DqReadWideWrap $7 '()) (lambda '($47) (AsStruct '('"key" (Concat $47 (String '"a")))))) $8 $9))
  (return (FromFlow (ExpandMap $46 $10)))
))) $13))
(let $15 '('('0 '"Asc")))
(let $16 (DqCnMerge (TDqOutput $14 '0) $15))
(let $17 (lambda '($51) (AsStruct '('"key" $51))))
(let $18 (DqPhyStage '($16) (lambda '($50) (FromFlow (NarrowMap (ToFlow $50) $17))) '('('"_logical_id" '1448) '('"_id" '"e93d67ef-49023bac-b2212459-a4318ea1"))))
(let $19 (DqCnResult (TDqOutput $18 '0) $6))
(let $20 '('('"type" '"generic")))
(let $21 (KqpPhysicalTx '($14 $18) '($19) '() $20))
(let $22 '('('"_logical_id" '1558) '('"_id" '"70bf67a3-9254f89b-e5147316-d83f7932") $12))
(let $23 (DqPhyStage '() (lambda '() (block '(
  (let $52 (Sort (NarrowMap (DqReadWideWrap $7 '()) (lambda '($53) (AsStruct '('"key" (Concat $53 (String '"b")))))) $8 $9))
  (return (FromFlow (ExpandMap $52 $10)))
))) $22))
(let $24 (DqCnMerge (TDqOutput $23 '0) $15))
(let $25 (DqPhyStage '($24) (lambda '($54) (FromFlow (NarrowMap (ToFlow $54) $17))) '('('"_logical_id" '1570) '('"_id" '"f13d60f3-ceb9a496-2ba3f8e3-dd60932"))))
(let $26 (DqCnResult (TDqOutput $25 '0) $6))
(let $27 (KqpPhysicalTx '($23 $25) '($26) '() $20))
(let $28 '('"_partition_mode" '"single"))
(let $29 '('('"_logical_id" '1594) '('"_id" '"476463e3-93a58bc5-bba6aae0-68d63d1d") $28))
(let $30 (DqPhyStage '() (lambda '() (block '(
  (let $55 (Int32 '1))
  (return (Iterator (AsList (AsStruct '('"column0" (+ $55 $55))))))
))) $29))
(let $31 '('"column0"))
(let $32 (DqCnResult (TDqOutput $30 '0) $31))
(let $33 (KqpPhysicalTx '($30) '($32) '() $20))
(let $34 '('('"_logical_id" '1618) '('"_id" '"7aabb506-ac10fbac-3097bd3-9a5adc3") $28))
(let $35 (DqPhyStage '() (lambda '() (block '(
  (let $56 (Int32 '2))
  (return (Iterator (AsList (AsStruct '('"column0" (+ $56 $56))))))
))) $34))
(let $36 (DqCnResult (TDqOutput $35 '0) $31))
(let $37 (KqpPhysicalTx '($35) '($36) '() $20))
(let $38 '($21 $27 $33 $37))
(let $39 (ListType $11))
(let $40 (KqpTxResultBinding $39 '0 '0))
(let $41 (KqpTxResultBinding $39 '1 '0))
(let $42 (ListType (StructType '('"column0" (DataType 'Int32)))))
(let $43 (KqpTxResultBinding $42 '2 '0))
(let $44 (KqpTxResultBinding $42 '"3" '0))
(let $45 '($40 $41 $43 $44))
(return (KqpPhysicalQuery $38 $45 '('('"type" '"query"))))
)
