(
(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 (DataType 'String))
(let $8 '('('"_logical_id" '1876) '('"_id" '"e7e12d72-25ead602-6f4450f5-b0768c37") '('"_wide_channels" (StructType '('"subkey" $7)))))
(let $9 (DqPhyStage '() (lambda '() (block '(
  (let $27 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"subkey") (Void) (Void))) '()))))
  (return (FromFlow (WideMap (WideFilter (DqReadWideWrap $27 '()) (lambda '($28 $29) (< $28 (String '"010")))) (lambda '($30 $31) $31))))
))) $8))
(let $10 (DqCnBroadcast (TDqOutput $9 '0)))
(let $11 '('0 '0 '1 '1 '2 '2))
(let $12 '('"a.key" $7))
(let $13 '('"a.subkey" $7))
(let $14 '('"a.value" $7))
(let $15 (StructType $12 $13 $14))
(let $16 '('('"_logical_id" '1931) '('"_id" '"cc7a4667-26436597-4f4e8b30-ad80d5ee") '('"_wide_channels" $15)))
(let $17 (DqPhyStage '($10) (lambda '($32) (block '(
  (let $33 '('One 'Hashed 'Compact))
  (let $34 (NarrowSqueezeToDict (ToFlow $32) (lambda '($35) $35) (lambda '($36) (Void)) $33))
  (return (FromFlow (FlatMap $34 (lambda '($37) (block '(
    (let $38 '('"key" '"subkey" '"value"))
    (let $39 (YtReadTable! world $1 '((YtSection '((YtPath $6 $38 (Void) (Void))) '()))))
    (return (MapJoinCore (WideFilter (DqReadWideWrap $39 '()) (lambda '($40 $41 $42) (< $40 (String '"020")))) $37 'LeftOnly '('1) '('"subkey") $11 '() '('"a.subkey") '('"b.subkey")))
  ))))))
))) $16))
(let $18 '('('"_logical_id" '1789) '('"_id" '"e0c1f301-c3117b89-c79fc592-7c697f50") '('"_wide_channels" (StructType '('"key" $7) '('"value" $7)))))
(let $19 (DqPhyStage '() (lambda '() (block '(
  (let $43 (YtReadTable! world $1 '((YtSection '((YtPath $6 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $43 '())))
))) $18))
(let $20 (DqCnMap (TDqOutput $17 '0)))
(let $21 (DqCnBroadcast (TDqOutput $19 '0)))
(let $22 (DqPhyStage '($20 $21) (lambda '($44 $45) (block '(
  (let $46 '('Many 'Hashed 'Compact))
  (let $47 (NarrowSqueezeToDict (ToFlow $45) (lambda '($48 $49) $48) (lambda '($50 $51) (AsStruct '('"key" $50) '('"value" $51))) $46))
  (return (FromFlow (NarrowMap (FlatMap $47 (lambda '($52) (block '(
    (let $53 '('"key" '3 '"value" '4))
    (return (MapJoinCore (ToFlow $44) $52 'Inner '('0) '('"key") $11 $53 '('"a.key") '('"c.key")))
  )))) (lambda '($54 $55 $56 $57 $58) (AsStruct '('"a.key" $54) '('"a.subkey" $55) '('"a.value" $56) '('"c.key" $57) '('"c.value" $58))))))
))) '('('"_logical_id" '1963) '('"_id" '"cb1fd2d3-931d4d29-22625604-1592e706"))))
(let $23 (DqCnUnionAll (TDqOutput $22 '0)))
(let $24 (DqPhyStage '($23) (lambda '($59) $59) '('('"_logical_id" '2319) '('"_id" '"8f95e73d-10f47500-1eb80a3f-f7c4d627"))))
(let $25 '($9 $17 $19 $22 $24))
(let $26 (DqCnResult (TDqOutput $24 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $25 '($26) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType $12 $13 $14 '('"c.key" $7) '('"c.value" $7))) '0 '0)) '('('"type" '"query"))))
)
