(
(let $1 (Bool 'false))
(let $2 (lambda '($27) $27))
(let $3 (OptionalType (DataType 'Double)))
(let $4 '('('"_logical_id" '1051) '('"_id" '"dd3061c5-590de466-48ceccc8-8242f1b6") '('"_wide_channels" (StructType '('_yql_agg_0 $3)))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('HasRLS '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $17 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '() (Void) (Void) (Void))) '()))))
  (let $20 (Just (Double '"1.0")))
  (let $21 (Condense1 (NarrowMap (DqReadWideWrap $19 '()) (lambda '() (AsStruct))) (lambda '($22) $20) (lambda '($23 $24) $1) (lambda '($25 $26) (AggrAdd $20 $26))))
  (return (FromFlow (ExpandMap $21 $2)))
))) $4))
(let $6 (DqCnUnionAll (TDqOutput $5 '0)))
(let $7 (StructType '('Sum0 $3)))
(let $8 '('('"_logical_id" '2122) '('"_id" '"65eb626-b2295363-a7a05b9f-654d99c4") '('"_partition_mode" '"aggregate") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($28) (FromFlow (WideCondense1 (ToFlow $28) $2 (lambda '($29 $30) $1) (lambda '($31 $32) (AggrAdd $31 $32))))) $8))
(let $10 (DqCnUnionAll (TDqOutput $9 '0)))
(let $11 (DqPhyStage '($10) (lambda '($33) (block '(
  (let $34 (Condense (NarrowMap (ToFlow $33) (lambda '($35) (AsStruct '('Sum0 $35)))) (List (ListType $7)) (lambda '($36 $37) $1) (lambda '($38 $39) (AsList $38))))
  (return (FromFlow (Map $34 (lambda '($40) (AsStruct '('"column0" (Member (ToOptional $40) 'Sum0)))))))
))) '('('"_logical_id" '2172) '('"_id" '"af07b5c5-65ae6b19-f0eeaca9-7634a91f"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $3))) '0 '0)) '('('"type" '"query"))))
)
