(
(let $1 (Uint64 '10))
(let $2 (DataType 'String))
(let $3 '('"Name" $2))
(let $4 '('('"_logical_id" '2195) '('"_id" '"22e23741-b3bfa6ec-51533cc7-64aa9b81") '('"_wide_channels" (StructType $3 '('"Value" $2)))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $18 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $19 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $18)))
  (let $20 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $21 (YtStat '('Id '"Input0") '('RecordsCount '"200") '('DataSize '"9557") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $22 (YtTable '"Input0" $19 $20 $21 '() (Void) (Void) '"/Root/plato"))
  (let $23 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $22 '('"key" '"value") (Void) (Void))) '()))))
  (return (FromFlow (WideFilter (DqReadWideWrap $23 '()) (lambda '($24 $25) (!= $24 (String '"BadName"))) $1)))
))) $4))
(let $6 (DqCnUnionAll (TDqOutput $5 '0)))
(let $7 (DataType 'Double))
(let $8 '('('"_logical_id" '2244) '('"_id" '"26e5c43d-aa109e54-74c138aa-a3fbcaaa") '('"_wide_channels" (StructType $3 '('_yql_agg_0 (TupleType $7 (DataType 'Uint64)))))))
(let $9 (DqPhyStage '($6) (lambda '($26) (block '(
  (let $27 (lambda '($32 $33 $34) (Convert (Size $34) 'Double) (Uint64 '1)))
  (let $28 (lambda '($35 $36 $37 $38 $39) (AggrAdd $38 (Convert (Size $37) 'Double)) (Inc $39)))
  (let $29 (lambda '($40 $41 $42) $40 '($41 $42)))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (Take (ToFlow $26) $1))) '-1073741824 (lambda '($30 $31) $30) $27 $28 $29))
))) $8))
(let $10 (DqCnHashShuffle (TDqOutput $9 '0) '('0) '0 '"HashV2"))
(let $11 (StructType '('"Len" $7) $3))
(let $12 '('('"_logical_id" '5081) '('"_id" '"44318082-fb633c2c-65c1fc6a-ebba207a") '('"_wide_channels" $11)))
(let $13 (DqPhyStage '($10) (lambda '($43) (block '(
  (let $44 (lambda '($50 $51 $52) (Nth $52 '0) (Nth $52 '1)))
  (let $45 (lambda '($53 $54 $55 $56 $57) (AggrAdd (Nth $55 '0) $56) (AggrAdd (Nth $55 '1) $57)))
  (let $46 (lambda '($58 $59 $60) (Div $59 $60) $58))
  (let $47 (WideCombiner (ToFlow (WideFromBlocks $43)) '"" (lambda '($48 $49) $48) $44 $45 $46))
  (return (FromFlow (WideSort $47 '('('1 (Bool 'true))))))
))) $12))
(let $14 (DqCnMerge (TDqOutput $13 '0) '('('1 '"Asc"))))
(let $15 (DqPhyStage '($14) (lambda '($61) (FromFlow (NarrowMap (ToFlow $61) (lambda '($62 $63) (AsStruct '('"Len" $62) '('"Name" $63)))))) '('('"_logical_id" '5093) '('"_id" '"cf211891-31a0b279-c3fc7634-52aab130"))))
(let $16 '($5 $9 $13 $15))
(let $17 (DqCnResult (TDqOutput $15 '0) '('"Name" '"Len")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $16 '($17) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $11) '0 '0)) '('('"type" '"query"))))
)
