(
(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 '('RecordsCount '"4"))
(let $6 '('DataSize '"166"))
(let $7 '('ChunkCount '1))
(let $8 '('ModifyTime '0))
(let $9 '('Revision '0))
(let $10 (DataType 'String))
(let $11 '('('"_logical_id" '1586) '('"_id" '"6670ae94-18a51ec2-f9f8f614-866c264a") '('"_wide_channels" (StructType '('"key" $10) '('"value" $10)))))
(let $12 (DqPhyStage '() (lambda '() (block '(
  (let $22 (YtStat '('Id '"Input2") $5 $6 $7 $8 $9))
  (let $23 (YtTable '"Input2" $3 $4 $22 '() (Void) (Void) '"/Root/plato"))
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $23 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $11))
(let $13 (DqCnBroadcast (TDqOutput $12 '0)))
(let $14 (StructType '('"a.key" $10) '('"a.rn" (DataType 'Bool)) '('"a.subkey" $10) '('"b.value" $10)))
(let $15 '('('"_logical_id" '1780) '('"_id" '"e412ce4-2e169be8-41681b7b-6b919ee8") '('"_wide_channels" $14)))
(let $16 (DqPhyStage '($13) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($31 $32) $31) (lambda '($33 $34) (AsStruct '('"key" $33) '('"value" $34))) $26))
  (let $28 (Bool 'true))
  (let $29 (Sort (FlatMap $27 (lambda '($35) (block '(
    (let $36 (YtStat '('Id '"Input1") $5 $6 $7 $8 $9))
    (let $37 (YtTable '"Input1" $3 $4 $36 '() (Void) (Void) '"/Root/plato"))
    (let $38 '('"key" '"subkey" '"value"))
    (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $37 $38 (Void) (Void))) '()))))
    (let $40 '('"key"))
    (let $41 '('"key" '"a.key" '"rn" '"a.rn" '"subkey" '"a.subkey"))
    (return (MapJoinCore (Map (NarrowMap (DqReadWideWrap $39 '()) (lambda '($42 $43 $44) (AsStruct '('"key" $42) '('"subkey" $43) '('"value" $44)))) (lambda '($45) (block '(
      (let $46 (Member $45 '"key"))
      (return (AsStruct '('"key" $46) '('"rn" (<= (Random (DependsOn (Concat (Member $45 '"value") (String '"x")))) (Double '"1.0"))) '('"subkey" (Concat (Member $45 '"subkey") $46))))
    )))) $35 'Inner $40 $40 $41 '('"value" '"b.value") '('"a.key") '('"b.key")))
  )))) '($28 $28) (lambda '($47) '((Member $47 '"a.key") (Member $47 '"a.rn")))))
  (let $30 (lambda '($48) (Member $48 '"a.key") (Member $48 '"a.rn") (Member $48 '"a.subkey") (Member $48 '"b.value")))
  (return (FromFlow (ExpandMap $29 $30)))
))) $15))
(let $17 (DqCnMerge (TDqOutput $16 '0) '('('0 '"Asc") '('1 '"Asc"))))
(let $18 (DqPhyStage '($17) (lambda '($49) (FromFlow (NarrowMap (ToFlow $49) (lambda '($50 $51 $52 $53) (AsStruct '('"a.key" $50) '('"a.rn" $51) '('"a.subkey" $52) '('"b.value" $53)))))) '('('"_logical_id" '1792) '('"_id" '"91da81fe-5f2ccd3d-f1d2815c-ab3a57c8"))))
(let $19 '($12 $16 $18))
(let $20 '('"a.key" '"a.subkey" '"a.rn" '"b.value"))
(let $21 (DqCnResult (TDqOutput $18 '0) $20))
(return (KqpPhysicalQuery '((KqpPhysicalTx $19 '($21) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $14) '0 '0)) '('('"type" '"query"))))
)
