(
(let $1 (String '"150"))
(let $2 '('"key" $1))
(let $3 (AsStruct $2 '('"sk" (Int32 '1)) '('"v" (Int32 '2))))
(let $4 (AsList '($1 $3)))
(let $5 (lambda '($60) (Nth $60 '0)))
(let $6 (lambda '($61) (Nth $61 '1)))
(let $7 '('Many 'Hashed 'Compact))
(let $8 (SqueezeToDict (ToFlow $4) $5 $6 $7))
(let $9 (DataSource '"yt" '"/Root/plato"))
(let $10 '@@["StructType";[["value";["DataType";"String"]];["subkey";["DataType";"String"]];["key";["DataType";"String"]]]]@@)
(let $11 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $10)))
(let $12 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $13 (YtStat '('Id '"Input") '('RecordsCount '4) '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $14 (YtTable '"Input" $11 $12 $13 '() (Void) (Void) '"/Root/plato"))
(let $15 '('"key" '"subkey" '"value"))
(let $16 (YtReadTable! world $9 '((YtSection '((YtPath $14 $15 (Void) (Void))) '()))))
(let $17 (DqReadWideWrap $16 '()))
(let $18 '('"key"))
(let $19 '('"a.key"))
(let $20 '('"b.key"))
(let $21 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (FlatMap $8 (lambda '($62) (block '(
  (let $63 '('1 '0 '2 '1))
  (let $64 '('"key" '2 '"sk" '3 '"v" '4))
  (return (MapJoinCore $17 $62 '"Inner" '('0) $18 $63 $64 $19 $20))
)))) (lambda '($65 $66 $67 $68 $69) (AsStruct '('"key" $67) '('"sk" $68) '('"subkey" $65) '('"v" $69) '('"value" $66)))))) '('('"_logical_id" '4109) '('"_id" '"7d5a8a9a-ddd86104-948f77d-1b36dbea"))))
(let $22 (DqCnUnionAll (TDqOutput $21 '0)))
(let $23 (DqPhyStage '($22) (lambda '($70) $70) '('('"_logical_id" '4947) '('"_id" '"ecdb79e7-becfb5a8-aa652467-bd1dfd2b"))))
(let $24 '('"sk" '"key" '"v" '"value" '"subkey"))
(let $25 (DqCnResult (TDqOutput $23 '0) $24))
(let $26 '('('"type" '"generic")))
(let $27 (KqpPhysicalTx '($21 $23) '($25) '() $26))
(let $28 (DqPhyStage '() (lambda '() (block '(
  (let $71 (SqueezeToDict (ToFlow (AsList '($1 (AsStruct $2)))) (lambda '($72) (Nth $72 '0)) (lambda '($73) (Nth $73 '1)) $7))
  (return (FromFlow (NarrowMap (FlatMap $71 (lambda '($74) (block '(
    (let $75 '('0 '0 '1 '1 '2 '2))
    (return (MapJoinCore (DqReadWideWrap $16 '()) $74 '"Inner" '('0) $18 $75 '() $19 $20))
  )))) (lambda '($76 $77 $78) (AsStruct '('"key" $76) '('"subkey" $77) '('"value" $78))))))
))) '('('"_logical_id" '4366) '('"_id" '"d2e7eb92-81a004b1-24dbcf24-b891a07f"))))
(let $29 (DqCnUnionAll (TDqOutput $28 '0)))
(let $30 (DqPhyStage '($29) (lambda '($79) $79) '('('"_logical_id" '5505) '('"_id" '"3339282c-dbbeb0d2-f952fa69-caf6c2c1"))))
(let $31 '('"value" '"subkey" '"key"))
(let $32 (DqCnResult (TDqOutput $30 '0) $31))
(let $33 (KqpPhysicalTx '($28 $30) '($32) '() $26))
(let $34 (DqPhyStage '() (lambda '() (block '(
  (let $80 (SqueezeToDict (ToFlow $4) $5 $6 $7))
  (return (FromFlow (NarrowMap (FlatMap $80 (lambda '($81) (block '(
    (let $82 (YtReadTable! world $9 '((YtSection '((YtPath $14 $18 (Void) (Void))) '()))))
    (let $83 '('"key" '0 '"sk" '1 '"v" '2))
    (return (MapJoinCore (DqReadWideWrap $82 '()) $81 '"Inner" '('0) $18 '() $83 $19 $20))
  )))) (lambda '($84 $85 $86) (AsStruct '('"key" $84) '('"sk" $85) '('"v" $86))))))
))) '('('"_logical_id" '4609) '('"_id" '"21f5e299-780cefb8-957906d1-55043f13"))))
(let $35 (DqCnUnionAll (TDqOutput $34 '0)))
(let $36 (DqPhyStage '($35) (lambda '($87) $87) '('('"_logical_id" '6025) '('"_id" '"8f313c3a-5bd5cc1d-9cb997a1-15189e70"))))
(let $37 '('"sk" '"key" '"v"))
(let $38 (DqCnResult (TDqOutput $36 '0) $37))
(let $39 (KqpPhysicalTx '($34 $36) '($38) '() $26))
(let $40 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (FlatMap $8 (lambda '($88) (block '(
  (let $89 '('1 '0 '2 '1))
  (let $90 '('"key" '2 '"sk" '3 '"v" '4))
  (return (MapJoinCore $17 $88 '"Inner" '('0) $18 $89 $90 $19 $20))
)))) (lambda '($91 $92 $93 $94 $95) (AsStruct '('"key" $93) '('"sk" $94) '('"subkey" $91) '('"v" $95) '('"value" $92)))))) '('('"_logical_id" '4897) '('"_id" '"62e91d73-55323ac7-9ce8b6b3-c2775965"))))
(let $41 (DqCnUnionAll (TDqOutput $40 '0)))
(let $42 (DqPhyStage '($41) (lambda '($96) $96) '('('"_logical_id" '6547) '('"_id" '"32f22522-b688ca9f-31bd4ee7-22c97422"))))
(let $43 '('"value" '"subkey" '"sk" '"key" '"v"))
(let $44 (DqCnResult (TDqOutput $42 '0) $43))
(let $45 (KqpPhysicalTx '($40 $42) '($44) '() $26))
(let $46 '($27 $33 $39 $45))
(let $47 (DataType 'String))
(let $48 '('"key" $47))
(let $49 (DataType 'Int32))
(let $50 '('"sk" $49))
(let $51 '('"subkey" $47))
(let $52 '('"v" $49))
(let $53 '('"value" $47))
(let $54 (ListType (StructType $48 $50 $51 $52 $53)))
(let $55 (KqpTxResultBinding $54 '0 '0))
(let $56 (KqpTxResultBinding (ListType (StructType $48 $51 $53)) '1 '0))
(let $57 (KqpTxResultBinding (ListType (StructType $48 $50 $52)) '2 '0))
(let $58 (KqpTxResultBinding $54 '"3" '0))
(let $59 '($55 $56 $57 $58))
(return (KqpPhysicalQuery $46 $59 '('('"type" '"query"))))
)
