(
(let $1 '('"key" '"subkey" '"value"))
(let $2 (DataType 'String))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $7 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $8 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $7)))
  (let $9 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $10 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $11 (YtTable '"Input" $8 $9 $10 '() (Void) (Void) '"/Root/plato"))
  (let $12 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $11 $1 (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $12 '()) (lambda '($13 $14 $15) (block '(
    (let $16 (String '"q"))
    (let $17 '($2))
    (let $18 '((OptionalType $2)))
    (let $19 (CallableType '('1) $17 $17 $18))
    (let $20 (Udf '"Re2.PatternFromLike" (Void) (VoidType) '"" $19 (VoidType) '"" '()))
    (let $21 (DataType 'Bool))
    (let $22 (DataType 'Uint64))
    (let $23 (StructType '('"CaseSensitive" $21) '('"DotNl" $21) '('"Literal" $21) '('"LogErrors" $21) '('"LongestMatch" $21) '('"MaxMem" $22) '('"NeverCapture" $21) '('"NeverNl" $21) '('"OneLine" $21) '('"PerlClasses" $21) '('"PosixSyntax" $21) '('"Utf8" $21) '('"WordBoundary" $21)))
    (let $24 (OptionalType $21))
    (let $25 (CallableType '('"13") '($23) '($24 '"Utf8") '($24 '"PosixSyntax") '($24 '"LongestMatch") '($24 '"LogErrors") '((OptionalType $22) '"MaxMem") '($24 '"Literal") '($24 '"NeverNl") '($24 '"DotNl") '($24 '"NeverCapture") '($24 '"CaseSensitive") '($24 '"PerlClasses") '($24 '"WordBoundary") '($24 '"OneLine")))
    (let $26 (Udf '"Re2.Options" (Void) (VoidType) '"" $25 (VoidType) '"" '('('"strict"))))
    (let $27 (CallableType '() '($21) $18))
    (return (Or (And (StartsWith $15 $16) (Apply (AssumeStrict (Udf '"Re2.Match" '((Apply $20 (String '"q_z")) (Just (NamedApply $26 '() (AsStruct '('"CaseSensitive" (Just (Bool '"true"))))))) (VoidType) '"" $27 (TupleType $2 (OptionalType $23)) '"" '())) (Just $15))) (EndsWith $15 $16)))
  )))) (lambda '($28 $29 $30) (AsStruct '('"key" $28) '('"subkey" $29) '('"value" $30))))))
))) '('('"_logical_id" '922) '('"_id" '"3a61274a-ea12a329-65880340-345f1317"))))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($31) $31) '('('"_logical_id" '969) '('"_id" '"49fec860-5cd36d9e-b0407dcb-f5b053c6"))))
(let $6 (DqCnResult (TDqOutput $5 '0) $1))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"key" $2) '('"subkey" $2) '('"value" $2))) '0 '0)) '('('"type" '"query"))))
)
