(
(let $1 (lambda '($28 $29) $29 $28))
(let $2 (DataType 'Uint64))
(let $3 '('common (DataType 'String)))
(let $4 '('('"_logical_id" '2518) '('"_id" '"d243c527-41b74135-3537231-3db61da") '('"_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) '('HasRLS '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) (Void))) '()))))
  (let $21 (Uint64 '1))
  (return (FromFlow (DqPhyHashCombine (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" '3069) '('"_id" '"4fd901d4-68696ae9-84a2b7db-718bc886") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($30) (block '(
  (let $31 (DqPhyHashCombine (ToFlow $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" '3081) '('"_id" '"993ac40f-3332597d-d40c8719-47444dd7"))))
(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"))))
)
