(
(let $1 (lambda '($28 $29) $29 $28))
(let $2 (DataType 'Uint64))
(let $3 '('common (DataType 'String)))
(let $4 '('('"_logical_id" '2501) '('"_id" '"268df763-58d21f44-ccd79bd8-30c5b528") '('"_wide_channels" (StructType '('_yql_agg_0 $2) $3))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $15 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $16 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('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 '10) '('DataSize '"424") '('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 '('"subkey") (Void) (Void))) '()))))
  (let $21 (Uint64 '1))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $20 '()))) '-1073741824 (lambda '($22) $22) (lambda '($23 $24) $21) (lambda '($25 $26 $27) (AggrAdd $27 $21)) $1))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType $3 '('"part_percent" (OptionalType (DataType 'Double))) '('"rec_count" $2)))
(let $8 '('('"_logical_id" '3052) '('"_id" '"542834a2-54fa4925-a5cf0a6f-a7cd5511") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($30) (block '(
  (let $31 (WideCombiner (ToFlow (WideFromBlocks $30)) '"" (lambda '($33 $34) $34) (lambda '($35 $36 $37) $36) (lambda '($38 $39 $40 $41) (AggrAdd $39 $41)) $1))
  (let $32 (lambda '($42 $43) $43 (/ (* (Double '"100.") $42) (Just (Uint64 '10))) $42))
  (return (FromFlow (WideMap (WideSort $31 '('('1 (Bool 'true)))) $32)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($44) (FromFlow (NarrowMap (ToFlow $44) (lambda '($45 $46 $47) (AsStruct '('common $45) '('"part_percent" $46) '('"rec_count" $47)))))) '('('"_logical_id" '3064) '('"_id" '"30bc2ff6-5fbb7545-74dc3d19-ee31792e"))))
(let $12 '($5 $9 $11))
(let $13 '('common '"rec_count" '"part_percent"))
(let $14 (DqCnResult (TDqOutput $11 '0) $13))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
