(
(let $1 (DataType 'String))
(let $2 (OptionalType $1))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $8 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (let $9 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $8)))
  (let $10 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $11 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $12 (YtTable '"Input" $9 $10 $11 '() (Void) (Void) '"/Root/plato"))
  (let $13 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $12 '('"key" '"subkey") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $13 '()) (lambda '($14 $15) (block '(
    (let $16 (IfPresent (SafeCast (Double '"3.1415") (OptionalType (DataType 'Int16))) (lambda '($17) (Just (SafeCast $17 $1))) (Nothing $2)))
    (return (AsStruct '('"key" $14) '('"subkey" $15) '('"value" $16)))
  ))))))
))) '('('"_logical_id" '611) '('"_id" '"e43430db-a72b6d92-3220e4f5-febb0a9"))))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($18) $18) '('('"_logical_id" '655) '('"_id" '"806ffed6-7ebd8fa0-82f1cbed-44686ed6"))))
(let $6 '('"key" '"subkey" '"value"))
(let $7 (DqCnResult (TDqOutput $5 '0) $6))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"key" $1) '('"subkey" $1) '('"value" $2))) '0 '0)) '('('"type" '"query"))))
)
