(
(let $1 (Bool 'false))
(let $2 (DataType 'Double))
(let $3 '('('"_logical_id" '1446) '('"_id" '"7033d586-364c49d-eb735c91-7e79dd8c") '('"_wide_channels" (StructType '('_yql_agg_0 $2) '('_yql_agg_1 $2)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"Uint32"]];["subkey";["DataType";"Double"]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $17 (YtStat '('Id '"Input") '('RecordsCount '"9") '('DataSize '"242") '('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 '('"subkey") (Void) (Void))) '()))))
  (let $20 (lambda '($22) $22 $22))
  (let $21 (lambda '($26 $27 $28) (AggrMax $26 $27) (AggrMin $26 $28)))
  (return (FromFlow (WideCondense1 (DqReadWideWrap $19 '()) $20 (lambda '($23 $24 $25) $1) $21)))
))) $3))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (StructType '('Max0 $2) '('Min0 $2)))
(let $7 '('('"_logical_id" '1527) '('"_id" '"92fb8341-bb043c4-f9d27816-2bdad6ef") '('"_partition_mode" '"aggregate") '('"_wide_channels" $6)))
(let $8 (DqPhyStage '($5) (lambda '($29) (block '(
  (let $30 (lambda '($32 $33) $32 $33))
  (let $31 (lambda '($38 $39 $40 $41) (AggrMax $38 $40) (AggrMin $39 $41)))
  (return (FromFlow (WideCondense1 (ToFlow $29) $30 (lambda '($34 $35 $36 $37) $1) $31)))
))) $7))
(let $9 (DqCnUnionAll (TDqOutput $8 '0)))
(let $10 (DqPhyStage '($9) (lambda '($42) (block '(
  (let $43 (Condense (NarrowMap (ToFlow $42) (lambda '($44 $45) (AsStruct '('Max0 $44) '('Min0 $45)))) (List (ListType $6)) (lambda '($46 $47) $1) (lambda '($48 $49) (AsList $48))))
  (return (FromFlow (Map $43 (lambda '($50) (block '(
    (let $51 (ToOptional $50))
    (return (AsStruct '('"column0" (Member $51 'Min0)) '('"column1" (Member $51 'Max0))))
  ))))))
))) '('('"_logical_id" '1709) '('"_id" '"981dafaa-2d9b3964-42aa5771-bb09b744"))))
(let $11 '($4 $8 $10))
(let $12 (DqCnResult (TDqOutput $10 '0) '('"column0" '"column1")))
(let $13 (OptionalType $2))
(return (KqpPhysicalQuery '((KqpPhysicalTx $11 '($12) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $13) '('"column1" $13))) '0 '0)) '('('"type" '"query"))))
)
