(
(let $1 (DataType 'Double))
(let $2 (OptionalType $1))
(let $3 (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 '('"subkey") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $12 '()) (lambda '($13) (block '(
    (let $14 '($1))
    (let $15 '('('"strict")))
    (let $16 (* (Apply (Udf '"Math.Pi" (Void) (VoidType) '"" (CallableType '() $14) (VoidType) '"" $15)) (SafeCast $13 $2)))
    (let $17 '($1 '"" '1))
    (let $18 (CallableType '() $14 $17))
    (let $19 (Nothing $2))
    (let $20 (IfPresent $16 (lambda '($23) (block '(
      (let $24 (Udf '"Math.Sin" (Void) (VoidType) '"" $18 (VoidType) '"" $15))
      (return (Just (Apply $24 $23)))
    ))) $19))
    (let $21 (IfPresent $16 (lambda '($25) (block '(
      (let $26 (Udf '"Math.Cos" (Void) (VoidType) '"" $18 (VoidType) '"" $15))
      (return (Just (Apply $26 $25)))
    ))) $19))
    (let $22 (IfPresent (+ (* $20 $20) (* $21 $21)) (lambda '($27) (block '(
      (let $28 (Udf '"Math.Sqrt" (Void) (VoidType) '"" $18 (VoidType) '"" $15))
      (return (Just (Apply $28 $27)))
    ))) $19))
    (return (AsStruct '('"column0" $22)))
  ))))))
))) '('('"_logical_id" '1144) '('"_id" '"7eae6dff-affafb6a-e3eac547-510b545a"))))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($29) $29) '('('"_logical_id" '1194) '('"_id" '"5cec1411-b119bf19-883dd8c-7a8aaa5"))))
(let $6 (DqCnResult (TDqOutput $5 '0) '('"column0")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" $2))) '0 '0)) '('('"type" '"query"))))
)
