(
(let $1 (DataType 'String))
(let $2 (lambda '($26) $26))
(let $3 '('('"_logical_id" '980) '('"_id" '"e3c62f65-81200ff4-53479cbe-130004a2") '('"_wide_channels" (StructType '('"value" (OptionalType $1))))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["OptionalType";["DataType";"String"]]]]]@@)
  (let $15 (Bool 'true))
  (let $16 '('"key" '"subkey"))
  (let $17 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14) '('SortDirections '($15 $15)) '('SortMembers $16) '('SortedBy $16) '('SortedByTypes '($1 $1))))
  (let $18 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $19 (YtStat '('Id '"Input5") '('RecordsCount '"7") '('DataSize '"291") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $20 (YtTable '"Input5" $17 $18 $19 '() (Void) (Void) '"/Root/plato"))
  (let $21 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $20 '('"key" '"value") (Void) (Void))) '('('"unordered"))))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (WideMap (WideFilter (DqReadWideWrap $21 '()) (lambda '($22 $23) (== $22 (String '"150")))) (lambda '($24 $25) $25)))) '-1073741824 $2 (lambda '($27 $28) $27) (lambda '($29 $30 $31) $31) (lambda '($32 $33) $33)))
))) $3))
(let $5 (DqCnHashShuffle (TDqOutput $4 '0) '('0) '0 '"HashV2"))
(let $6 (Bool 'false))
(let $7 (DataType 'Uint64))
(let $8 '('('"_logical_id" '1713) '('"_id" '"6d161fae-d247b796-8aa22675-4e7c9f18") '('"_wide_channels" (StructType '('_yql_agg_0 (OptionalType $7))))))
(let $9 (DqPhyStage '($5) (lambda '($34) (block '(
  (let $35 (lambda '($38 $39)))
  (let $36 (WideCombiner (ToFlow (WideFromBlocks $34)) '"" $2 $35 $35 $2))
  (let $37 (Condense1 (NarrowMap $36 (lambda '($40) (AsStruct '('"value" $40)))) (lambda '($41) (AggrCountInit (Member $41 '"value"))) (lambda '($42 $43) $6) (lambda '($44 $45) (AggrCountUpdate (Member $44 '"value") $45))))
  (return (FromFlow (ExpandMap $37 (lambda '($46) (Just $46)))))
))) $8))
(let $10 (DqCnUnionAll (TDqOutput $9 '0)))
(let $11 (DqPhyStage '($10) (lambda '($47) (block '(
  (let $48 (WideCondense1 (ToFlow $47) (lambda '($50) $50) (lambda '($51 $52) $6) (lambda '($53 $54) (IfPresent $53 (lambda '($55) (IfPresent $54 (lambda '($56) (Just (AggrAdd $55 $56))) $53)) $54))))
  (let $49 (Condense (NarrowMap (Take $48 (Uint64 '1)) (lambda '($57) (AsStruct '('Count0 (Unwrap $57))))) (Nothing (OptionalType (StructType '('Count0 $7)))) (lambda '($58 $59) $6) (lambda '($60 $61) (Just $60))))
  (return (FromFlow (Map $49 (lambda '($62) (AsStruct '('"Count" (Coalesce (Member $62 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2448) '('"_id" '"83bae4e9-761659ce-ce069305-c2665a4a"))))
(let $12 '($4 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"Count")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"Count" $7))) '0 '0)) '('('"type" '"query"))))
)
