(
(let $1 (OptionalType (DataType 'Bool)))
(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 '"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 '('"key") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $12 '()) (lambda '($13) (block '(
    (let $14 (SafeCast $13 (OptionalType (DataType 'Int32))))
    (let $15 (Int32 '1))
    (let $16 (Int32 '"2"))
    (let $17 (Int32 '"3"))
    (let $18 (Int32 '"800"))
    (let $19 (Or (== $14 $15) (== $14 $16) (== $14 $17) (== $14 $18)))
    (let $20 (Bool 'false))
    (let $21 (IfPresent $14 (lambda '($24) (block '(
      (let $25 (Int32 '0))
      (let $26 (AsDict '($15 $25) '($16 $25) '($17 $25) '($18 $25)))
      (return (Contains $26 $24))
    ))) $20))
    (let $22 (If $21 (Just (Bool 'true)) (Just $20)))
    (let $23 (If (Exists $14) $22 (Nothing $1)))
    (return (AsStruct '('"column1" $19) '('"column2" $23) '('"key" $13)))
  ))))))
))) '('('"_logical_id" '715) '('"_id" '"df0f959b-fe26285f-e764e35c-ad743c0f"))))
(let $3 (DqCnUnionAll (TDqOutput $2 '0)))
(let $4 (DqPhyStage '($3) (lambda '($27) $27) '('('"_logical_id" '762) '('"_id" '"ff7c1758-513beb31-850ee7b4-bd4cd98e"))))
(let $5 '('"key" '"column1" '"column2"))
(let $6 (DqCnResult (TDqOutput $4 '0) $5))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($2 $4) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column1" $1) '('"column2" $1) '('"key" (DataType 'String)))) '0 '0)) '('('"type" '"query"))))
)
