(
(let $1 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $2 (Bool 'true))
(let $3 '('"key" '"subkey"))
(let $4 (DataType 'String))
(let $5 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $1) '('SortDirections '($2 $2)) '('SortMembers $3) '('SortedBy $3) '('SortedByTypes '($4 $4))))
(let $6 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
(let $7 (YtStat '('Id '"Input8") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $8 (YtTable '"Input8" $5 $6 $7 '() (Void) (Void) '"/Root/plato"))
(let $9 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $8 $3 (Void) (Void) (Void))) '('('"unordered"))))))
(let $10 (DqReadWideWrap $9 '()))
(let $11 (String '"bar"))
(let $12 '('"_logical_id" '2940))
(let $13 '('"_wide_channels" (StructType '('"key" $4) '('"subkey" $4))))
(let $14 '($12 '('"_id" '"b6dbbdc1-3a6a873e-a92fda3e-d55f6e62") $13))
(let $15 (DqPhyStage '() (lambda '() (FromFlow (WideFilter $10 (lambda '($62 $63) (!= $63 $11))))) $14))
(let $16 (String '"foo"))
(let $17 '($12 '('"_id" '"a8307222-fdc68642-ac1d24ff-d9fa9dcb") $13))
(let $18 (DqPhyStage '() (lambda '() (FromFlow (WideFilter $10 (lambda '($64 $65) (!= $65 $16))))) $17))
(let $19 (DqCnMap (TDqOutput $15 '0)))
(let $20 (DqCnBroadcast (TDqOutput $18 '0)))
(let $21 '('Many 'Hashed 'Compact))
(let $22 '('0 '1))
(let $23 '('"a.key" '"a.subkey"))
(let $24 '('"b.key" '"b.subkey"))
(let $25 '('"key1" $4))
(let $26 '('"subkey1" $4))
(let $27 (StructType $25 $26))
(let $28 '('"_wide_channels" $27))
(let $29 '('('"_logical_id" '3075) '('"_id" '"2cf4afb9-33792ecd-6b4a119-796dc8d3") $28))
(let $30 (DqPhyStage '($19 $20) (lambda '($66 $67) (block '(
  (let $68 (NarrowSqueezeToDict (ToFlow $67) (lambda '($69 $70) '($69 $70)) (lambda '($71 $72) (AsStruct '('"key" $71) '('"subkey" $72))) $21))
  (return (FromFlow (FlatMap $68 (lambda '($73) (block '(
    (let $74 '('0 '0 '1 '1))
    (return (MapJoinCore (ToFlow $66) $73 'Inner $22 $3 $74 '() $23 $24))
  ))))))
))) $29))
(let $31 (DqCnHashShuffle (TDqOutput $30 '0) $22 '0 '"HashV2"))
(let $32 '('"_partition_mode" '"aggregate"))
(let $33 '('('"_logical_id" '3122) '('"_id" '"fac058a1-8c83a20b-24a35949-ca0c7dc7") $32))
(let $34 (DqPhyStage '($31) (lambda '($75) (block '(
  (let $76 (lambda '($80 $81) $80 $81))
  (let $77 (Uint64 '1))
  (let $78 (lambda '($91 $92 $93) $93 $91 $92))
  (let $79 (WideCombiner (ToFlow $75) '"" $76 (lambda '($82 $83 $84 $85) $77) (lambda '($86 $87 $88 $89 $90) (AggrAdd $90 $77)) $78))
  (return (FromFlow (NarrowMap $79 (lambda '($94 $95 $96) (AsStruct '('"column2" $94) '('"key1" $95) '('"subkey1" $96))))))
))) $33))
(let $35 (DqCnUnionAll (TDqOutput $34 '0)))
(let $36 (DqPhyStage '($35) (lambda '($97) $97) '('('"_logical_id" '4200) '('"_id" '"613316bf-b0a59415-8e9c8eee-95cd5929"))))
(let $37 '($15 $18 $30 $34 $36))
(let $38 '('"key1" '"subkey1" '"column2"))
(let $39 (DqCnResult (TDqOutput $36 '0) $38))
(let $40 '('('"type" '"generic")))
(let $41 (KqpPhysicalTx $37 '($39) '() $40))
(let $42 '('"_logical_id" '3598))
(let $43 '($42 '('"_id" '"7b79fdb0-7361d97d-f0afd13c-ba0da014") $13))
(let $44 (DqPhyStage '() (lambda '() (FromFlow (WideFilter $10 (lambda '($98 $99) (!= $99 $11))))) $43))
(let $45 '($42 '('"_id" '"fb1d8400-2aa8fd1e-b8942f63-c234e70d") $13))
(let $46 (DqPhyStage '() (lambda '() (FromFlow (WideFilter $10 (lambda '($100 $101) (!= $101 $16))))) $45))
(let $47 (DqCnMap (TDqOutput $44 '0)))
(let $48 (DqCnBroadcast (TDqOutput $46 '0)))
(let $49 '('0 '1))
(let $50 '('('"_logical_id" '3733) '('"_id" '"3d0ed921-7f1e9eeb-83ff6972-1d68e50f") $28))
(let $51 (DqPhyStage '($47 $48) (lambda '($102 $103) (block '(
  (let $104 (NarrowSqueezeToDict (ToFlow $103) (lambda '($105 $106) '($105 $106)) (lambda '($107 $108) (AsStruct '('"key" $107) '('"subkey" $108))) $21))
  (return (FromFlow (FlatMap $104 (lambda '($109) (block '(
    (let $110 '('0 '0 '1 '1))
    (return (MapJoinCore (ToFlow $102) $109 'Inner $49 $3 $110 '() $23 $24))
  ))))))
))) $50))
(let $52 (DqCnHashShuffle (TDqOutput $51 '0) $49 '0 '"HashV2"))
(let $53 '('('"_logical_id" '3779) '('"_id" '"81cbffc5-5bdc0982-235afc51-51023512") $32))
(let $54 (DqPhyStage '($52) (lambda '($111) (block '(
  (let $112 (lambda '($115 $116) $115 $116))
  (let $113 (lambda '($117 $118 $119 $120)))
  (let $114 (WideCombiner (ToFlow $111) '"" $112 $113 $113 $112))
  (return (FromFlow (NarrowMap $114 (lambda '($121 $122) (AsStruct '('"key1" $121) '('"subkey1" $122))))))
))) $53))
(let $55 (DqCnUnionAll (TDqOutput $54 '0)))
(let $56 (DqPhyStage '($55) (lambda '($123) $123) '('('"_logical_id" '6205) '('"_id" '"e223ffb3-5446c4b9-a7e6c7ac-1fc12636"))))
(let $57 '($44 $46 $51 $54 $56))
(let $58 (DqCnResult (TDqOutput $56 '0) '('"key1" '"subkey1")))
(let $59 (KqpPhysicalTx $57 '($58) '() $40))
(let $60 (KqpTxResultBinding (ListType (StructType '('"column2" (DataType 'Uint64)) $25 $26)) '0 '0))
(let $61 (KqpTxResultBinding (ListType $27) '1 '0))
(return (KqpPhysicalQuery '($41 $59) '($60 $61) '('('"type" '"query"))))
)
