(
(let $1 (lambda '($31) (Member $31 '_yql_agg_0) (Member $31 'group0)))
(let $2 (lambda '($32 $33) (AsStruct '('_yql_agg_0 $32) '('group0 $33))))
(let $3 (DataType 'Uint64))
(let $4 '('('"_logical_id" '1093) '('"_id" '"787c7ccb-2c896b19-6ec74866-e51a5b07") '('"_wide_channels" (StructType '('_yql_agg_0 $3) '('group0 (OptionalType (DataType 'String)))))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["dict";["DictType";["DataType";"String"];["DataType";"String"]]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $17 (YtStat '('Id '"Input") '('RecordsCount '"3") '('DataSize '"135") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('"dict") (Void) (Void))) '()))))
  (let $20 (Uint64 '1))
  (let $21 (CombineCore (NarrowMap (DqReadWideWrap $19 '()) (lambda '($22) (AsStruct '('group0 (Lookup (Member (AsStruct '('"dict" $22)) '"dict") (String '"a")))))) (lambda '($23) (Member $23 'group0)) (lambda '($24 $25) (AsStruct '('_yql_agg_0 $20))) (lambda '($26 $27 $28) (AsStruct '('_yql_agg_0 (AggrAdd (Member $28 '_yql_agg_0) $20)))) (lambda '($29 $30) (Just (AsStruct '('_yql_agg_0 (Member $30 '_yql_agg_0)) '('group0 $29)))) '0))
  (return (FromFlow (ExpandMap (NarrowMap (ExpandMap $21 $1) $2) $1)))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType '('"s" $3)))
(let $8 '('('"_logical_id" '1761) '('"_id" '"973efbbe-69d28023-79d5d35c-723732e8") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($34) (block '(
  (let $35 (lambda '($41 $42 $43) $42 $43))
  (let $36 (lambda '($44 $45 $46 $47 $48) (AggrAdd $45 $47) $48))
  (let $37 (WideCombiner (ExpandMap (NarrowMap (ToFlow $34) $2) $1) '"" (lambda '($39 $40) $40) $35 $36 $35))
  (let $38 (Sort (NarrowMap $37 (lambda '($49 $50) (AsStruct '('"s" (Member (AsStruct '('Count0 $49)) 'Count0))))) (Bool 'true) (lambda '($51) (Member $51 '"s"))))
  (return (FromFlow (ExpandMap $38 (lambda '($52) (Member $52 '"s")))))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($53) (FromFlow (NarrowMap (ToFlow $53) (lambda '($54) (AsStruct '('"s" $54)))))) '('('"_logical_id" '1773) '('"_id" '"361ea6a7-26460c2f-df69c3fd-879b498b"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"s")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
