(
(let $1 (lambda '($33) (Member $33 '_yql_agg_0) (Member $33 'sk)))
(let $2 (lambda '($34 $35) (AsStruct '('_yql_agg_0 $34) '('sk $35))))
(let $3 (DataType 'Uint64))
(let $4 '('sk (OptionalType $3)))
(let $5 '('('"_logical_id" '1116) '('"_id" '"87ea5aa-9c8f5eb0-83d5983-5f53eadd") '('"_wide_channels" (StructType '('_yql_agg_0 $3) $4))))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $15 '@@["StructType";[["key";["OptionalType";["DataType";"String"]]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
  (let $16 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $15)))
  (let $17 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $18 (YtStat '('Id '"Input") '('RecordsCount '"5") '('DataSize '"620") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $19 (YtTable '"Input" $16 $17 $18 '() (Void) (Void) '"/Root/plato"))
  (let $20 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $19 '('"_other") (Void) (Void))) '()))))
  (let $21 (Uint64 '1))
  (let $22 (CombineCore (NarrowMap (DqReadWideWrap $20 '()) (lambda '($23) (block '(
    (let $24 (TryWeakMemberFromDict (Just (Member (AsStruct '('"_other" $23)) '"_other")) (Nothing (OptionalType (DictType (DataType 'String) (DataType 'Yson)))) 'Uint64 '"uiData"))
    (return (AsStruct '('sk $24)))
  )))) (lambda '($25) (Member $25 'sk)) (lambda '($26 $27) (AsStruct '('_yql_agg_0 $21))) (lambda '($28 $29 $30) (AsStruct '('_yql_agg_0 (AggrAdd (Member $30 '_yql_agg_0) $21)))) (lambda '($31 $32) (Just (AsStruct '('_yql_agg_0 (Member $32 '_yql_agg_0)) '('sk $31)))) '0))
  (return (FromFlow (ExpandMap (NarrowMap (ExpandMap $22 $1) $2) $1)))
))) $5))
(let $7 (DqCnHashShuffle (TDqOutput $6 '0) '('1) '0 '"HashV2"))
(let $8 (StructType '('"count" $3) $4))
(let $9 '('('"_logical_id" '1668) '('"_id" '"1dfd6172-e12bb6ac-8ee6b513-9b35293") '('"_wide_channels" $8)))
(let $10 (DqPhyStage '($7) (lambda '($36) (block '(
  (let $37 (lambda '($44 $45 $46) $45 $46))
  (let $38 (lambda '($47 $48 $49 $50 $51) (AggrAdd $48 $50) $51))
  (let $39 (WideCombiner (ExpandMap (NarrowMap (ToFlow $36) $2) $1) '"" (lambda '($42 $43) $43) $37 $38 $37))
  (let $40 (Sort (NarrowMap $39 (lambda '($52 $53) (block '(
    (let $54 (AsStruct '('Count0 $52) '('sk $53)))
    (return (AsStruct '('"count" (Member $54 'Count0)) '('sk (Member $54 'sk))))
  )))) (Bool 'true) (lambda '($55) (Member $55 'sk))))
  (let $41 (lambda '($56) (Member $56 '"count") (Member $56 'sk)))
  (return (FromFlow (ExpandMap $40 $41)))
))) $9))
(let $11 (DqCnMerge (TDqOutput $10 '0) '('('1 '"Asc"))))
(let $12 (DqPhyStage '($11) (lambda '($57) (FromFlow (NarrowMap (ToFlow $57) (lambda '($58 $59) (AsStruct '('"count" $58) '('sk $59)))))) '('('"_logical_id" '1680) '('"_id" '"495516d4-16ae3ed9-6beba149-ce8c2b66"))))
(let $13 '($6 $10 $12))
(let $14 (DqCnResult (TDqOutput $12 '0) '('sk '"count")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
