(
(let $1 '('('"_logical_id" '1514) '('"_id" '"8a76979-7504fb25-2b1faccf-94e067db") '('"_partition_mode" '"single")))
(let $2 (DqPhyStage '() (lambda '() (Iterator (AsList (AsStruct '('"column0" (Uint64 '4)))))) $1))
(let $3 '('"column0"))
(let $4 (DqCnResult (TDqOutput $2 '0) $3))
(let $5 '('('"type" '"generic")))
(let $6 (KqpPhysicalTx '($2) '($4) '() $5))
(let $7 (DataSource '"yt" '"/Root/plato"))
(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 '4) '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $12 (YtTable '"Input" $9 $10 $11 '() (Void) (Void) '"/Root/plato"))
(let $13 (String '"075"))
(let $14 (Uint64 '1))
(let $15 (Bool 'false))
(let $16 (lambda '($45) $45))
(let $17 (DataType 'Uint64))
(let $18 '('('"_logical_id" '1742) '('"_id" '"852f09ef-fee43840-e2b0b0fa-b488fd24") '('"_wide_channels" (StructType '('_yql_agg_0 $17)))))
(let $19 (DqPhyStage '() (lambda '() (block '(
  (let $36 (YtReadTable! world $7 '((YtSection '((YtPath $12 '('"key") (Void) (Void))) '()))))
  (let $37 (Condense1 (NarrowMap (WideFilter (DqReadWideWrap $36 '()) (lambda '($38) (!= $38 $13))) (lambda '($39) (AsStruct))) (lambda '($40) $14) (lambda '($41 $42) $15) (lambda '($43 $44) (AggrAdd $44 $14))))
  (return (FromFlow (ExpandMap $37 $16)))
))) $18))
(let $20 (DqCnUnionAll (TDqOutput $19 '0)))
(let $21 (DqPhyStage '($20) (lambda '($46) (block '(
  (let $47 (WideCondense1 (ToFlow $46) $16 (lambda '($49 $50) $15) (lambda '($51 $52) (AggrAdd $51 $52))))
  (let $48 (Condense (NarrowMap (Take $47 $14) (lambda '($53) (AsStruct '('Count0 $53)))) (Nothing (OptionalType (StructType '('Count0 $17)))) (lambda '($54 $55) $15) (lambda '($56 $57) (Just $56))))
  (return (FromFlow (Map $48 (lambda '($58) (AsStruct '('"column0" (Coalesce (Member $58 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2551) '('"_id" '"c4ed33a4-f43e2912-a9430e04-a7d63ca7"))))
(let $22 (DqCnResult (TDqOutput $21 '0) $3))
(let $23 (KqpPhysicalTx '($19 $21) '($22) '() $5))
(let $24 (DqPhyStage '() (lambda '() (block '(
  (let $59 '('"key" '"subkey" '"value"))
  (let $60 (YtReadTable! world $7 '((YtSection '((YtPath $12 $59 (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $60 '()) (lambda '($61 $62 $63) (!= $61 $13))) (lambda '($64 $65 $66) (AsStruct '('"key" $64) '('"subkey" $65) '('"value" $66))))))
))) '('('"_logical_id" '2755) '('"_id" '"7cf10cf5-dc35a13f-f08d4e4c-e550f918"))))
(let $25 (DqCnUnionAll (TDqOutput $24 '0)))
(let $26 (DqPhyStage '($25) (lambda '($67) $67) '('('"_logical_id" '3711) '('"_id" '"afdd5bab-92acd1d9-4e2ba20d-3dfa80ce"))))
(let $27 (DqCnResult (TDqOutput $26 '0) '()))
(let $28 (KqpPhysicalTx '($24 $26) '($27) '() $5))
(let $29 '($6 $23 $28))
(let $30 (ListType (StructType '('"column0" $17))))
(let $31 (KqpTxResultBinding $30 '0 '0))
(let $32 (KqpTxResultBinding $30 '1 '0))
(let $33 (DataType 'String))
(let $34 (KqpTxResultBinding (ListType (StructType '('"key" $33) '('"subkey" $33) '('"value" $33))) '"2" '0))
(let $35 '($31 $32 $34))
(return (KqpPhysicalQuery $29 $35 '('('"type" '"query"))))
)
