(
(let $1 (DataType 'Double))
(let $2 (OptionalType $1))
(let $3 (Bool 'false))
(let $4 (lambda '($35) $35))
(let $5 '('('"_logical_id" '1825) '('"_id" '"c878bf05-3cd5c96c-aba738b9-3ccbf53a") '('"_wide_channels" (StructType '('_yql_agg_0 $2)))))
(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) '('HasRLS '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $18 (YtStat '('Id '"Input4") '('RecordsCount '"9") '('DataSize '"369") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $19 (YtTable '"Input4" $16 $17 $18 '() (Void) (Void) '"/Root/plato"))
  (let $20 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $19 '('"subkey") (Void) (Void) (Void))) '()))))
  (let $21 (lambda '($26) (block '(
    (let $27 '($1 '"" '1))
    (let $28 (CallableType '() '($1) $27 $27))
    (let $29 (Udf '"Math.Pow" (Void) (VoidType) '"" $28 (VoidType) '"" '('('"strict"))))
    (return (Just (Apply $29 $26 (Convert (Int32 '"2") $1))))
  ))))
  (let $22 (Nothing $2))
  (let $23 (Condense1 (NarrowMap (DqReadWideWrap $20 '()) (lambda '($24) (AsStruct '('"subkey" $24)))) (lambda '($25) (IfPresent (SafeCast (Member $25 '"subkey") $2) $21 $22)) (lambda '($30 $31) $3) (lambda '($32 $33) (block '(
    (let $34 (IfPresent (SafeCast (Member $32 '"subkey") $2) $21 $22))
    (return (AggrAdd $34 $33))
  )))))
  (return (FromFlow (ExpandMap $23 $4)))
))) $5))
(let $7 (DqCnUnionAll (TDqOutput $6 '0)))
(let $8 (StructType '('Sum0 $2)))
(let $9 '('('"_logical_id" '1904) '('"_id" '"f8380a17-c71fa826-8b7163d-562cb3a9") '('"_partition_mode" '"aggregate") '('"_wide_channels" $8)))
(let $10 (DqPhyStage '($7) (lambda '($36) (block '(
  (let $37 (Condense1 (NarrowMap (ToFlow $36) (lambda '($38) (AsStruct '('_yql_agg_0 $38)))) (lambda '($39) (Member $39 '_yql_agg_0)) (lambda '($40 $41) $3) (lambda '($42 $43) (AggrAdd (Member $42 '_yql_agg_0) $43))))
  (return (FromFlow (ExpandMap $37 $4)))
))) $9))
(let $11 (DqCnUnionAll (TDqOutput $10 '0)))
(let $12 (DqPhyStage '($11) (lambda '($44) (block '(
  (let $45 (Condense (NarrowMap (ToFlow $44) (lambda '($46) (AsStruct '('Sum0 $46)))) (List (ListType $8)) (lambda '($47 $48) $3) (lambda '($49 $50) (AsList $49))))
  (return (FromFlow (Map $45 (lambda '($51) (AsStruct '('"column0" (Member (ToOptional $51) 'Sum0)))))))
))) '('('"_logical_id" '2070) '('"_id" '"573e94fe-20678869-c36ebe7b-f2b1e69e"))))
(let $13 '($6 $10 $12))
(let $14 (DqCnResult (TDqOutput $12 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $13 '($14) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $2))) '0 '0)) '('('"type" '"query"))))
)
