(
(let $1 '('('"_logical_id" '794) '('"_id" '"5294fff0-eda1f190-66a81546-77ee1346") '('"_wide_channels" (StructType '('"value" (DataType 'String))))))
(let $2 (DqPhyStage '() (lambda '() (block '(
  (let $13 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $14 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $13)))
  (let $15 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $16 (YtStat '('Id '"Input2") '('RecordsCount '"4") '('DataSize '"164") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $17 (YtTable '"Input2" $14 $15 $16 '() (Void) (Void) '"/Root/plato"))
  (let $18 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $17 '('"key") (Void) (Void))) '()))))
  (let $19 (lambda '($21) $21))
  (let $20 (lambda '($22 $23)))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $18 '()))) '-1073741824 $19 $20 $20 $19))
))) $1))
(let $3 (DqCnHashShuffle (TDqOutput $2 '0) '('0) '0 '"HashV2"))
(let $4 (Uint64 '0))
(let $5 (Bool 'false))
(let $6 (DataType 'Uint64))
(let $7 '('('"_logical_id" '909) '('"_id" '"526d6a04-7183af5f-dc8f1e35-d2199df2") '('"_wide_channels" (StructType '('"_dq_agg_cnt" $6)))))
(let $8 (DqPhyStage '($3) (lambda '($24) (block '(
  (let $25 (PartitionByKey (NarrowMap (ToFlow (WideFromBlocks $24)) (lambda '($27) (AsStruct '('"value" $27)))) (lambda '($28) (Member $28 '"value")) (Void) (Void) (lambda '($29) (Map $29 (lambda '($30) (AsStruct))))))
  (let $26 (Condense $25 $4 (lambda '($31 $32) $5) (lambda '($33 $34) (AggrAdd $34 (Uint64 '1)))))
  (return (FromFlow (ExpandMap $26 (lambda '($35) $35))))
))) $7))
(let $9 (DqCnUnionAll (TDqOutput $8 '0)))
(let $10 (DqPhyStage '($9) (lambda '($36) (block '(
  (let $37 (Condense (NarrowMap (ToFlow $36) (lambda '($38) (AsStruct '('"_dq_agg_cnt" $38)))) $4 (lambda '($39 $40) $5) (lambda '($41 $42) (AggrAdd $42 (Member $41 '"_dq_agg_cnt")))))
  (return (FromFlow (Map $37 (lambda '($43) (AsStruct '('"column0" $43))))))
))) '('('"_logical_id" '1075) '('"_id" '"13d1fc56-2ab6a58d-f75ba02b-bdb7c3b1"))))
(let $11 '($2 $8 $10))
(let $12 (DqCnResult (TDqOutput $10 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $11 '($12) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $6))) '0 '0)) '('('"type" '"query"))))
)
