(
(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 '('CanWrite '1))
(let $5 '('DoesExist '1))
(let $6 '('YqlCompatibleScheme '1))
(let $7 '('InferredScheme '0))
(let $8 '('IsDynamic '0))
(let $9 '('"native_strict_schema" '"false"))
(let $10 '('RecordsCount '"3"))
(let $11 '('DataSize '"132"))
(let $12 '('ChunkCount '1))
(let $13 '('ModifyTime '0))
(let $14 '('Revision '0))
(let $15 '('"key" '"value"))
(let $16 (DataType 'String))
(let $17 '('('"_logical_id" '1708) '('"_id" '"23752001-aa4e23f9-afb741d0-b3398da2") '('"_wide_channels" (StructType '('"key" $16) '('"value" $16)))))
(let $18 (DqPhyStage '() (lambda '() (block '(
  (let $27 (YtMeta $4 $5 $6 $7 $8 '('Attrs '($9))))
  (let $28 (YtStat '('Id '"Input2") $10 $11 $12 $13 $14))
  (let $29 (YtTable '"Input2" $3 $27 $28 '() (Void) (Void) '"/Root/plato"))
  (let $30 (YtReadTable! world $1 '((YtSection '((YtPath $29 $15 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $30 '())))
))) $17))
(let $19 (DqCnBroadcast (TDqOutput $18 '0)))
(let $20 (StructType '('"a.v" $16) '('"b.value" $16)))
(let $21 '('('"_logical_id" '1896) '('"_id" '"e9db6fc5-6d086738-6157b9a2-735b84b7") '('"_wide_channels" $20)))
(let $22 (DqPhyStage '($19) (lambda '($31) (block '(
  (let $32 '('Many 'Hashed 'Compact))
  (let $33 (NarrowSqueezeToDict (ToFlow $31) (lambda '($34 $35) $34) (lambda '($36 $37) (AsStruct '('"key" $36) '('"value" $37))) $32))
  (return (FromFlow (WideSort (FlatMap $33 (lambda '($38) (block '(
    (let $39 (YtMeta $4 $5 $6 $7 $8 '('Attrs '($9 '('"_yql_view_ksv" '"SELECT key as k, subkey as s, value as v FROM self")))))
    (let $40 (YtStat '('Id '"Input1") $10 $11 $12 $13 $14))
    (let $41 (YtTable '"Input1" $3 $39 $40 '() (Void) (Void) '"/Root/plato"))
    (let $42 (YtReadTable! world $1 '((YtSection '((YtPath $41 $15 (Void) (Void))) '()))))
    (return (MapJoinCore (DqReadWideWrap $42 '()) $38 'Inner '('0) '('"key") '('1 '0) '('"value" '1) '('"a.key") '('"b.key")))
  )))) '('('0 (Bool 'true))))))
))) $21))
(let $23 (DqCnMerge (TDqOutput $22 '0) '('('0 '"Asc"))))
(let $24 (DqPhyStage '($23) (lambda '($43) (FromFlow (NarrowMap (ToFlow $43) (lambda '($44 $45) (AsStruct '('"a.v" $44) '('"b.value" $45)))))) '('('"_logical_id" '1908) '('"_id" '"adbe1557-4dd0049f-858d521-b8e024b8"))))
(let $25 '($18 $22 $24))
(let $26 (DqCnResult (TDqOutput $24 '0) '('"a.v" '"b.value")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $25 '($26) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $20) '0 '0)) '('('"type" '"query"))))
)
