(
(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 '('"key"))
(let $8 (YtReadTable! world $1 '((YtSection '((YtPath $6 $7 (Void) (Void))) '()))))
(let $9 (DqReadWideWrap $8 '()))
(let $10 (DataType 'String))
(let $11 '('"_wide_channels" (StructType '('"key" $10))))
(let $12 '('('"_logical_id" '2107) '('"_id" '"288c58c2-f2838ad7-7f65b530-e7220cdc") $11))
(let $13 (DqPhyStage '() (lambda '() (FromFlow $9)) $12))
(let $14 (DqCnBroadcast (TDqOutput $13 '0)))
(let $15 '('One 'Hashed 'Compact))
(let $16 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
(let $17 (DqReadWideWrap $16 '()))
(let $18 '('"a.key"))
(let $19 '('"b.key"))
(let $20 (Bool 'true))
(let $21 (StructType '('"subkey" $10)))
(let $22 '('"_wide_channels" $21))
(let $23 '('('"_logical_id" '2295) '('"_id" '"8d6d7572-47ad9085-a799af5f-686e6cef") $22))
(let $24 (DqPhyStage '($14) (lambda '($46) (block '(
  (let $47 (NarrowSqueezeToDict (ToFlow $46) (lambda '($48) $48) (lambda '($49) (Void)) $15))
  (return (FromFlow (WideSort (FlatMap $47 (lambda '($50) (MapJoinCore $17 $50 'LeftSemi '('0) $7 '('1 '0) '() $18 $19))) '('('0 $20)))))
))) $23))
(let $25 '('('0 '"Asc")))
(let $26 (DqCnMerge (TDqOutput $24 '0) $25))
(let $27 (lambda '($52) (AsStruct '('"subkey" $52))))
(let $28 (DqPhyStage '($26) (lambda '($51) (FromFlow (NarrowMap (ToFlow $51) $27))) '('('"_logical_id" '2307) '('"_id" '"c3c598ef-ab71fbfc-de3b7545-c3db23e0"))))
(let $29 '($13 $24 $28))
(let $30 (DqCnResult (TDqOutput $28 '0) '()))
(let $31 '('('"type" '"generic")))
(let $32 (KqpPhysicalTx $29 '($30) '() $31))
(let $33 '('('"_logical_id" '2449) '('"_id" '"10ff316-a5a01798-b852aad9-45a03212") $11))
(let $34 (DqPhyStage '() (lambda '() (FromFlow $9)) $33))
(let $35 (DqCnBroadcast (TDqOutput $34 '0)))
(let $36 '('('"_logical_id" '2637) '('"_id" '"6671d063-c46487a5-19a3a3d8-b285fff") $22))
(let $37 (DqPhyStage '($35) (lambda '($53) (block '(
  (let $54 (NarrowSqueezeToDict (ToFlow $53) (lambda '($55) $55) (lambda '($56) (Void)) $15))
  (return (FromFlow (WideSort (FlatMap $54 (lambda '($57) (MapJoinCore $17 $57 'LeftSemi '('0) $7 '('1 '0) '() $18 $19))) '('('0 $20)))))
))) $36))
(let $38 (DqCnMerge (TDqOutput $37 '0) $25))
(let $39 (DqPhyStage '($38) (lambda '($58) (FromFlow (NarrowMap (ToFlow $58) $27))) '('('"_logical_id" '2649) '('"_id" '"62ba3cc9-1c73361c-6f341d2d-6039dd0f"))))
(let $40 '($34 $37 $39))
(let $41 (DqCnResult (TDqOutput $39 '0) '()))
(let $42 (KqpPhysicalTx $40 '($41) '() $31))
(let $43 (ListType $21))
(let $44 (KqpTxResultBinding $43 '0 '0))
(let $45 (KqpTxResultBinding $43 '1 '0))
(return (KqpPhysicalQuery '($32 $42) '($44 $45) '('('"type" '"query"))))
)
