(
(let $1 (DataType 'String))
(let $2 (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 '"10") '('DataSize '"420") '('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 '('"subkey" '"value") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $12 '()) (lambda '($13 $14) (block '(
    (let $15 '($1 '"" '1))
    (let $16 (CallableType '() '($1) $15))
    (let $17 (Udf '"String.AsciiToLower" (Void) (VoidType) '"" $16 (VoidType) '"" '('('"blocks") '('"strict"))))
    (let $18 (If (And (> $14 (String '"aaa")) (> (Apply $17 (AssumeNonStrict $13)) (String '"3"))) (String '"foo") (String '"bar")))
    (return (AsStruct '('"column0" $18) '('"subkey" $13) '('"value" $14)))
  ))))))
))) '('('"_logical_id" '756) '('"_id" '"7ed42c45-cb71229a-ddf3ec83-1367154e"))))
(let $3 (DqCnUnionAll (TDqOutput $2 '0)))
(let $4 (DqPhyStage '($3) (lambda '($19) $19) '('('"_logical_id" '808) '('"_id" '"1534200d-6bd1ac27-cf78e1bf-8f21e49d"))))
(let $5 '('"column0" '"value" '"subkey"))
(let $6 (DqCnResult (TDqOutput $4 '0) $5))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($2 $4) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $1) '('"subkey" $1) '('"value" $1))) '0 '0)) '('('"type" '"query"))))
)
