(
(let $1 '"optional_key_to_larger_type")
(let $2 '"optional_key_ui32")
(let $3 '"optional_key_ui64")
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $11 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $12 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $11)))
  (let $13 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
  (let $14 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $15 (YtTable '"Input" $12 $13 $14 '() (Void) (Void) '"/Root/plato"))
  (let $16 '('"key" '"subkey" '"value"))
  (let $17 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $15 $16 (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $17 '()) (lambda '($18 $19 $20) (block '(
    (let $21 (Int32 '"3"))
    (let $22 (Int32 '1))
    (let $23 (Int32 '"2"))
    (let $24 (String '1))
    (let $25 (Or (== $24 $18) (== $24 $19) (== $24 $20)))
    (let $26 (SafeCast $19 (OptionalType (DataType 'Int32))))
    (let $27 (SafeCast $19 (OptionalType (DataType 'Int64))))
    (let $28 (SafeCast $19 (OptionalType (DataType 'Uint8))))
    (let $29 (SafeCast $19 (OptionalType (DataType 'Uint32))))
    (let $30 (SafeCast $19 (OptionalType (DataType 'Uint64))))
    (return (AsStruct '('"column0" (Bool 'true)) '('"column1" (Not (Or (== $21 $22) (== $21 $23)))) '('"column2" $25) '('"column3" (Bool 'false)) '('"column4" (!= $18 $19)) '('"optional_key_i32" (Or (== $26 $22) (== $26 $23))) '('"optional_key_i64" (Or (== $27 $22) (== $27 $23))) '($1 (Or (== $28 $22) (== $28 $23))) '($2 (Or (== $29 $22) (== $29 $23))) '($3 (Or (== $30 $22) (== $30 $23)))))
  ))))))
))) '('('"_logical_id" '1248) '('"_id" '"96232586-f79b8bdb-a2b8280c-760d179d"))))
(let $5 (DqCnUnionAll (TDqOutput $4 '0)))
(let $6 (DqPhyStage '($5) (lambda '($31) $31) '('('"_logical_id" '1316) '('"_id" '"f31462d2-85015618-da1a81e1-1f8380ce"))))
(let $7 '('"column0" '"column1" '"column2" '"column3" '"column4" '"optional_key_i32" '"optional_key_i64" $2 $3 $1))
(let $8 (DqCnResult (TDqOutput $6 '0) $7))
(let $9 (DataType 'Bool))
(let $10 (OptionalType $9))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($8) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $9) '('"column1" $9) '('"column2" $9) '('"column3" $9) '('"column4" $9) '('"optional_key_i32" $10) '('"optional_key_i64" $10) '($1 $10) '($2 $10) '($3 $10))) '0 '0)) '('('"type" '"query"))))
)
