(
(let $1 (Bool 'false))
(let $2 (DataType 'Uint64))
(let $3 '('('"_logical_id" '1576) '('"_id" '"386c0aa8-b5be5ff0-baaff97a-86683603") '('"_wide_channels" (StructType '('_yql_agg_0 $2)))))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $8 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $9 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $8)))
  (let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $11 (YtStat '('Id '"Input") '('RecordsCount '"14") '('DataSize '"621") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $12 (YtTable '"Input" $9 $10 $11 '() (Void) (Void) '"/Root/plato"))
  (let $13 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $12 '('"subkey") (Void) (Void) (Void))) '()))))
  (let $14 (OptionalType (DataType 'Int32)))
  (let $15 (Condense1 (NarrowMap (DqReadWideWrap $13 '()) (lambda '($16) (AsStruct '('"subkey" $16)))) (lambda '($17) (AggrCountInit (SafeCast (Member $17 '"subkey") $14))) (lambda '($18 $19) $1) (lambda '($20 $21) (AggrCountUpdate (SafeCast (Member $20 '"subkey") $14) $21))))
  (return (FromFlow (ExpandMap $15 (lambda '($22) $22))))
))) $3))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (DqPhyStage '($5) (lambda '($23) (block '(
  (let $24 (Condense1 (NarrowMap (ToFlow $23) (lambda '($26) (AsStruct '('_yql_agg_0 $26)))) (lambda '($27) (Member $27 '_yql_agg_0)) (lambda '($28 $29) $1) (lambda '($30 $31) (AggrAdd (Member $30 '_yql_agg_0) $31))))
  (let $25 (Condense (Map (Take $24 (Uint64 '1)) (lambda '($32) (AsStruct '('Count0 $32)))) (Nothing (OptionalType (StructType '('Count0 $2)))) (lambda '($33 $34) $1) (lambda '($35 $36) (Just $35))))
  (return (FromFlow (Map $25 (lambda '($37) (AsStruct '('"not_null_subkeys" (Coalesce (Member $37 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2022) '('"_id" '"5f47f40e-8ad2826f-77f718b5-d56877c3"))))
(let $7 (DqCnResult (TDqOutput $6 '0) '('"not_null_subkeys")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"not_null_subkeys" $2))) '0 '0)) '('('"type" '"query"))))
)
