(
(declare %kqp%tx_result_binding_0_0 (OptionalType (StructType '('Count0 (DataType 'Uint64)) '('Count1 (DataType 'Uint64)))))
(let $1 (Uint64 '1))
(let $2 (Bool 'false))
(let $3 (DataType 'Uint64))
(let $4 '('('"_logical_id" '971) '('"_id" '"ba1170fd-c10b2ac2-7d229c86-25447e8a") '('"_wide_channels" (StructType '('_yql_agg_0 $3) '('_yql_agg_1 $3)))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $17 '@@["StructType";[["key";["DataType";"Uint64"]];["subkey";["DataType";"Uint64"]]]]@@)
  (let $18 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $17)))
  (let $19 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $20 (YtStat '('Id '"Input") '('RecordsCount '"3") '('DataSize '"78") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $21 (YtTable '"Input" $18 $19 $20 '() (Void) (Void) '"/Root/plato"))
  (let $22 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $21 '('"key" '"subkey") (Void) (Void))) '()))))
  (let $23 (lambda '() $1 $1))
  (let $24 (lambda '($31 $32) (AggrAdd $31 $1) (Inc $32)))
  (return (FromFlow (WideCondense1 (WideMap (WideFilter (WideMap (DqReadWideWrap $22 '()) (lambda '($25 $26) $26)) (lambda '($27) (!= $27 (Int32 '"5")))) (lambda '($28))) $23 (lambda '($29 $30) $2) $24)))
))) $4))
(let $6 (DqCnUnionAll (TDqOutput $5 '0)))
(let $7 (OptionalType (StructType '('Count0 $3) '('Count1 $3))))
(let $8 (DqPhyStage '($6) (lambda '($33) (block '(
  (let $34 (lambda '($37 $38) $37 $38))
  (let $35 (lambda '($43 $44 $45 $46) (AggrAdd $43 $45) (AggrAdd $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) '('Count1 $48)))) (Nothing $7) (lambda '($49 $50) $2) (lambda '($51 $52) (Just $51)))))
))) '('('"_logical_id" '1855) '('"_id" '"96367a55-b9da1a6e-52dc60a1-eb2517b4"))))
(let $9 (DqCnValue (TDqOutput $8 '0)))
(let $10 (KqpPhysicalTx '($5 $8) '($9) '() '('('"type" '"compute"))))
(let $11 '"%kqp%tx_result_binding_0_0")
(let $12 '('('"_logical_id" '1987) '('"_id" '"e820fe70-8c48f72c-e11f546-9472c092") '('"_partition_mode" '"single")))
(let $13 (DqPhyStage '() (lambda '() (block '(
  (let $53 %kqp%tx_result_binding_0_0)
  (let $54 (Uint64 '0))
  (return (Iterator (AsList (AsStruct '('"column0" (Coalesce (Member $53 'Count0) $54)) '('"column1" (Coalesce (Member $53 'Count1) $54))))))
))) $12))
(let $14 (DqCnResult (TDqOutput $13 '0) '('"column0" '"column1")))
(let $15 (KqpTxResultBinding $7 '0 '0))
(let $16 (KqpPhysicalTx '($13) '($14) '('($11 $15)) '('('"type" '"generic"))))
(return (KqpPhysicalQuery '($10 $16) '((KqpTxResultBinding (ListType (StructType '('"column0" $3) '('"column1" $3))) '1 '0)) '('('"type" '"query"))))
)
