(
(let $1 (DataType 'Uint64))
(let $2 (OptionalType $1))
(let $3 (lambda '($35 $36) $36 $35))
(let $4 '('hundred_keys (OptionalType (DataType 'Int32))))
(let $5 '('('"_logical_id" '1856) '('"_id" '"e13a7e89-87059796-33036e1-a640f7ac") '('"_wide_channels" (StructType '('_yql_agg_0 $2) $4))))
(let $6 (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 '"4") '('DataSize '"166") '('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 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $21 (OptionalType (DataType 'Uint32)))
  (let $22 (lambda '($29) (Just (SafeCast $29 $1))))
  (let $23 (Nothing $2))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $20 '()))) '-1073741824 (lambda '($24 $25) (/ (SafeCast $24 $21) (Int32 '"100"))) (lambda '($26 $27 $28) (IfPresent (SafeCast $28 $21) $22 $23)) (lambda '($30 $31 $32 $33) (block '(
    (let $34 (IfPresent (SafeCast $32 $21) $22 $23))
    (return (AggrAdd $34 $33))
  ))) $3))
))) $5))
(let $7 (DqCnHashShuffle (TDqOutput $6 '0) '('1) '0 '"HashV2"))
(let $8 (StructType '('"column1" $2) $4))
(let $9 '('('"_logical_id" '2959) '('"_id" '"236e8d1f-1b8db0b-9d1b5ad4-88c631b6") '('"_wide_channels" $8)))
(let $10 (DqPhyStage '($7) (lambda '($37) (block '(
  (let $38 (WideCombiner (ToFlow (WideFromBlocks $37)) '"" (lambda '($39 $40) $40) (lambda '($41 $42 $43) $42) (lambda '($44 $45 $46 $47) (AggrAdd $45 $47)) $3))
  (return (FromFlow (WideSort $38 '('('1 (Bool 'true))))))
))) $9))
(let $11 (DqCnMerge (TDqOutput $10 '0) '('('1 '"Asc"))))
(let $12 (DqPhyStage '($11) (lambda '($48) (FromFlow (NarrowMap (ToFlow $48) (lambda '($49 $50) (AsStruct '('"column1" $49) '('hundred_keys $50)))))) '('('"_logical_id" '2971) '('"_id" '"72bb97fd-4d67ed33-e3802292-9edf844e"))))
(let $13 '($6 $10 $12))
(let $14 (DqCnResult (TDqOutput $12 '0) '('hundred_keys '"column1")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $8) '0 '0)) '('('"type" '"query"))))
)
