(
(let $1 (DataType 'String))
(let $2 (StructType '('"Data" $1)))
(let $3 '((StreamType $2)))
(let $4 '($1))
(let $5 (OptionalType $1))
(let $6 '($5))
(let $7 (CallableType '('"3") $3 $3 $4 '((OptionalType (ListType $1))) $6 $6))
(let $8 (Udf '"Streaming.Process" (Void) (VoidType) '"" $7 (VoidType) '"" '()))
(let $9 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
(let $10 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $9)))
(let $11 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
(let $12 (YtStat '('Id '"Input1") '('RecordsCount '"9") '('DataSize '"360") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
(let $13 (YtTable '"Input1" $10 $11 $12 '() (Void) (Void) '"/Root/plato"))
(let $14 '('"key" '"subkey" '"value"))
(let $15 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $13 $14 (Void) (Void))) '()))))
(let $16 '((ListType $5) '"" '1))
(let $17 (CallableType '() $4 $16 $4))
(let $18 (Udf '"String.JoinFromList" (Void) (VoidType) '"" $17 (VoidType) '"" '('('"strict"))))
(let $19 (String '","))
(let $20 (String '"grep"))
(let $21 (Just (AsList (String '"[14]"))))
(let $22 (DqPhyStage '() (lambda '() (Apply $8 (FromFlow (NarrowMap (DqReadWideWrap $15 '()) (lambda '($40 $41 $42) (block '(
  (let $43 (AsList (Just $40) (Just $41) (Just $42)))
  (let $44 (Apply $18 $43 $19))
  (return (AsStruct '('"Data" $44)))
))))) $20 $21)) '('('"_logical_id" '1244) '('"_id" '"aeb450a4-d35dc481-ff69414e-d4a821fc"))))
(let $23 (DqCnUnionAll (TDqOutput $22 '0)))
(let $24 (DqPhyStage '($23) (lambda '($45) $45) '('('"_logical_id" '2478) '('"_id" '"4292763a-715bef12-1793457f-a348b77"))))
(let $25 (DqCnResult (TDqOutput $24 '0) '()))
(let $26 '('('"type" '"generic")))
(let $27 (KqpPhysicalTx '($22 $24) '($25) '() $26))
(let $28 (Uint64 '1))
(let $29 (Bool 'false))
(let $30 (lambda '($58) $58))
(let $31 (DataType 'Uint64))
(let $32 '('('"_logical_id" '1502) '('"_id" '"46fba455-bd57f617-fd9ee512-f074419e") '('"_wide_channels" (StructType '('_yql_agg_0 $31)))))
(let $33 (DqPhyStage '() (lambda '() (block '(
  (let $46 (Condense1 (Map (ToFlow (Apply $8 (FromFlow (NarrowMap (DqReadWideWrap $15 '()) (lambda '($47 $48 $49) (block '(
    (let $50 (AsList (Just $47) (Just $48) (Just $49)))
    (let $51 (Apply $18 $50 $19))
    (return (AsStruct '('"Data" $51)))
  ))))) $20 $21)) (lambda '($52) (AsStruct))) (lambda '($53) $28) (lambda '($54 $55) $29) (lambda '($56 $57) (AggrAdd $57 $28))))
  (return (FromFlow (ExpandMap $46 $30)))
))) $32))
(let $34 (DqCnUnionAll (TDqOutput $33 '0)))
(let $35 (DqPhyStage '($34) (lambda '($59) (block '(
  (let $60 (WideCondense1 (ToFlow $59) $30 (lambda '($62 $63) $29) (lambda '($64 $65) (AggrAdd $64 $65))))
  (let $61 (Condense (NarrowMap (Take $60 $28) (lambda '($66) (AsStruct '('Count0 $66)))) (Nothing (OptionalType (StructType '('Count0 $31)))) (lambda '($67 $68) $29) (lambda '($69 $70) (Just $69))))
  (return (FromFlow (Map $61 (lambda '($71) (AsStruct '('"column0" (Coalesce (Member $71 'Count0) (Uint64 '0))))))))
))) '('('"_logical_id" '2311) '('"_id" '"bb5b985b-c5d4ee81-1a120398-9c9d7e6e"))))
(let $36 (DqCnResult (TDqOutput $35 '0) '('"column0")))
(let $37 (KqpPhysicalTx '($33 $35) '($36) '() $26))
(let $38 (KqpTxResultBinding (ListType $2) '0 '0))
(let $39 (KqpTxResultBinding (ListType (StructType '('"column0" $31))) '1 '0))
(return (KqpPhysicalQuery '($27 $37) '($38 $39) '('('"type" '"query"))))
)
