(
(declare %kqp%tx_result_binding_0_0 (OptionalType (StructType '('Count0 (DataType 'Uint64)) '('Min0 (DataType 'String)))))
(let $1 (Uint64 '1))
(let $2 (Bool 'false))
(let $3 (DataType 'Uint64))
(let $4 (DataType 'String))
(let $5 '('('"_logical_id" '1767) '('"_id" '"c6d380af-463d07e1-7f757e04-98a4e034") '('"_wide_channels" (StructType '('_yql_agg_0 $3) '('_yql_agg_1 $4)))))
(let $6 (DqPhyStage '() (lambda '() (block '(
  (let $18 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $19 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $18)))
  (let $20 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $21 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $22 (YtTable '"Input" $19 $20 $21 '() (Void) (Void) '"/Root/plato"))
  (let $23 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $22 '('"value") (Void) (Void))) '()))))
  (let $24 (lambda '($26) $1 $26))
  (let $25 (lambda '($30 $31 $32) (AggrAdd $31 $1) (AggrMin $30 $32)))
  (return (FromFlow (WideCondense1 (DqReadWideWrap $23 '()) $24 (lambda '($27 $28 $29) $2) $25)))
))) $5))
(let $7 (DqCnUnionAll (TDqOutput $6 '0)))
(let $8 (OptionalType (StructType '('Count0 $3) '('Min0 $4))))
(let $9 (DqPhyStage '($7) (lambda '($33) (block '(
  (let $34 (lambda '($37 $38) $37 $38))
  (let $35 (lambda '($43 $44 $45 $46) (AggrAdd $43 $45) (AggrMin $44 $46)))
  (let $36 (WideCondense1 (ToFlow $33) $34 (lambda '($39 $40 $41 $42) $2) $35))
  (return (FromFlow (Condense (NarrowMap (Take $36 $1) (lambda '($47 $48) (AsStruct '('Count0 $47) '('Min0 $48)))) (Nothing $8) (lambda '($49 $50) $2) (lambda '($51 $52) (Just $51)))))
))) '('('"_logical_id" '2049) '('"_id" '"739bfaee-5be8fa6c-b0235d17-cdae775a"))))
(let $10 (DqCnValue (TDqOutput $9 '0)))
(let $11 (KqpPhysicalTx '($6 $9) '($10) '() '('('"type" '"compute"))))
(let $12 '"%kqp%tx_result_binding_0_0")
(let $13 '('('"_logical_id" '2103) '('"_id" '"6cd24489-cbd84094-5b27befc-c7e6e303") '('"_partition_mode" '"single")))
(let $14 (DqPhyStage '() (lambda '() (block '(
  (let $53 %kqp%tx_result_binding_0_0)
  (return (Iterator (AsList (AsStruct '('"cnt" '((Coalesce (Member $53 'Count0) (Uint64 '0)) (Member $53 'Min0)))))))
))) $13))
(let $15 (DqCnResult (TDqOutput $14 '0) '('"cnt")))
(let $16 (KqpTxResultBinding $8 '0 '0))
(let $17 (KqpPhysicalTx '($14) '($15) '('($12 $16)) '('('"type" '"generic"))))
(return (KqpPhysicalQuery '($11 $17) '((KqpTxResultBinding (ListType (StructType '('"cnt" (TupleType $3 (OptionalType $4))))) '1 '0)) '('('"type" '"query"))))
)
