(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $3 (Bool 'true))
(let $4 '('"key" '"subkey"))
(let $5 (DataType 'String))
(let $6 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '1) '('Type $2) '('SortDirections '($3 $3)) '('SortMembers $4) '('SortedBy $4) '('SortedByTypes '($5 $5))))
(let $7 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
(let $8 (YtStat '('Id '"Input") '('RecordsCount '"10") '('DataSize '"420") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $9 (YtTable '"Input" $6 $7 $8 '() (Void) (Void) '"/Root/plato"))
(let $10 '('"key"))
(let $11 '('('"_logical_id" '1864) '('"_id" '"529432e1-5ec9be36-d43a27cc-ac17549b") '('"_wide_channels" (StructType '('"key" $5)))))
(let $12 (DqPhyStage '() (lambda '() (block '(
  (let $24 (YtReadTable! world $1 '((YtSection '((YtPath $9 $10 (Void) (Void))) '()))))
  (return (FromFlow (DqReadWideWrap $24 '())))
))) $11))
(let $13 (DqCnBroadcast (TDqOutput $12 '0)))
(let $14 (Uint64 '1))
(let $15 (Bool 'false))
(let $16 (lambda '($42) $42))
(let $17 (DataType 'Uint64))
(let $18 '('('"_logical_id" '2038) '('"_id" '"cf24d428-6348c87b-1a4bcafb-86e2c35f") '('"_wide_channels" (StructType '('_yql_agg_0 $17)))))
(let $19 (DqPhyStage '($13) (lambda '($25) (block '(
  (let $26 '('Many 'Hashed 'Compact))
  (let $27 (NarrowSqueezeToDict (ToFlow $25) (lambda '($29) $29) (lambda '($30) (AsStruct '('"key" $30))) $26))
  (let $28 (Condense1 (NarrowMap (FlatMap $27 (lambda '($31) (block '(
    (let $32 (YtReadTable! world $1 '((YtSection '((YtPath $9 '('"key" '"value") (Void) (Void))) '('('"unordered"))))))
    (return (MapJoinCore (WideMap (WideFilter (DqReadWideWrap $32 '()) (lambda '($33 $34) (> $34 (String '"bbb")))) (lambda '($35 $36) $35)) $31 'Left '('0) $10 '() '() '('"a.key") '('"b.key")))
  )))) (lambda '() (AsStruct))) (lambda '($37) $14) (lambda '($38 $39) $15) (lambda '($40 $41) (AggrAdd $41 $14))))
  (return (FromFlow (ExpandMap $28 $16)))
))) $18))
(let $20 (DqCnUnionAll (TDqOutput $19 '0)))
(let $21 (DqPhyStage '($20) (lambda '($43) (block '(
  (let $44 (WideCondense1 (ToFlow $43) $16 (lambda '($46 $47) $15) (lambda '($48 $49) (AggrAdd $48 $49))))
  (let $45 (Condense (NarrowMap (Take $44 $14) (lambda '($50) (AsStruct '('Count0 $50)))) (Nothing (OptionalType (StructType '('Count0 $17)))) (lambda '($51 $52) $15) (lambda '($53 $54) (Just $53))))
  (return (FromFlow (Map $45 (lambda '($55) (AsStruct '('"column0" (Coalesce (Member $55 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2875) '('"_id" '"438448e-dfa3ec49-37a4a88f-19a6c906"))))
(let $22 '($12 $19 $21))
(let $23 (DqCnResult (TDqOutput $21 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $22 '($23) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $17))) '0 '0)) '('('"type" '"query"))))
)
