(
(let $1 (OptionalType (DataType 'Int32)))
(let $2 (DqPhyStage '() (lambda '() (block '(
  (let $6 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $7 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $6)))
  (let $8 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $9 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $10 (YtTable '"Input" $7 $8 $9 '() (Void) (Void) '"/Root/plato"))
  (let $11 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $10 '('"value") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $11 '()) (lambda '($12) (block '(
    (let $13 (If (> (Size $12) (Int32 '"2")) (String '"long") (String '"short")))
    (return (AsStruct '('"if" $13) '('"no_else" (Nothing $1))))
  ))))))
))) '('('"_logical_id" '621) '('"_id" '"fb6c5121-ccae3c9e-9dc3df5b-b01ff5d0"))))
(let $3 (DqCnUnionAll (TDqOutput $2 '0)))
(let $4 (DqPhyStage '($3) (lambda '($14) $14) '('('"_logical_id" '666) '('"_id" '"a6ff9ea-6afe71b5-61830e45-7a051658"))))
(let $5 (DqCnResult (TDqOutput $4 '0) '('"if" '"no_else")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($2 $4) '($5) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"if" (DataType 'String)) '('"no_else" $1))) '0 '0)) '('('"type" '"query"))))
)
