(
(let $1 (lambda '($20) $20))
(let $2 '('('"_logical_id" '1485) '('"_id" '"8d5a5591-3e19e771-610c7452-f0a41b1a") '('"_wide_channels" (StructType '('_yql_preagg_Count0 (DataType 'String))))))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["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 '"Input3") '('RecordsCount '"7") '('DataSize '"287") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input3" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('"key") (Void) (Void))) '()))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 $1 (lambda '($21 $22) $21) (lambda '($23 $24 $25) $25) (lambda '($26 $27) $27)))
))) $2))
(let $4 (DqCnHashShuffle (TDqOutput $3 '0) '('0) '0 '"HashV2"))
(let $5 (Uint64 '1))
(let $6 (Bool 'false))
(let $7 (DataType 'Uint64))
(let $8 '('('"_logical_id" '2224) '('"_id" '"5c9befb2-62557a9f-5d0a6003-eb6db5f5") '('"_wide_channels" (StructType '('_yql_agg_0 (OptionalType $7))))))
(let $9 (DqPhyStage '($4) (lambda '($28) (block '(
  (let $29 (lambda '($32 $33)))
  (let $30 (WideCombiner (ToFlow (WideFromBlocks $28)) '"" $1 $29 $29 $1))
  (let $31 (Condense1 (NarrowMap $30 (lambda '($34) (AsStruct '('_yql_preagg_Count0 $34)))) (lambda '($35) $5) (lambda '($36 $37) $6) (lambda '($38 $39) (Inc $39))))
  (return (FromFlow (ExpandMap $31 (lambda '($40) (Just $40)))))
))) $8))
(let $10 (DqCnUnionAll (TDqOutput $9 '0)))
(let $11 (DqPhyStage '($10) (lambda '($41) (block '(
  (let $42 (WideCondense1 (ToFlow $41) (lambda '($44) $44) (lambda '($45 $46) $6) (lambda '($47 $48) (IfPresent $47 (lambda '($49) (IfPresent $48 (lambda '($50) (Just (AggrAdd $49 $50))) $47)) $48))))
  (let $43 (Condense (NarrowMap (Take $42 $5) (lambda '($51) (AsStruct '('Count0 (Unwrap $51))))) (Nothing (OptionalType (StructType '('Count0 $7)))) (lambda '($52 $53) $6) (lambda '($54 $55) (Just $54))))
  (return (FromFlow (Map $43 (lambda '($56) (AsStruct '('"cnt" (Coalesce (Member $56 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2959) '('"_id" '"fbf57e82-fce63254-34b26aaf-bba17fd"))))
(let $12 '($3 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"cnt")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"cnt" $7))) '0 '0)) '('('"type" '"query"))))
)
