(
(let $1 (DataType 'String))
(let $2 (OptionalType $1))
(let $3 (DqPhyStage '() (lambda '() (block '(
  (let $7 '@@["StructType";[["key";["DataType";"String"]];["subkey";["TaggedType";"tag";["OptionalType";["StructType";[["b";["OptionalType";["DataType";"Int32"]]];["c";["DataType";"String"]];["a";["DataType";"String"]]]]]]]]]@@)
  (let $8 (YqlRowSpec '('NativeYtTypeFlags '1) '('StrictSchema '1) '('UniqueKeys '0) '('Type $7)))
  (let $9 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0)))
  (let $10 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"190") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $11 (YtTable '"Input" $8 $9 $10 '('('"ignore_type_v3")) (Void) (Void) '"/Root/plato"))
  (let $12 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $11 '('"key" '"subkey") (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $12 '()) (lambda '($13 $14) (block '(
    (let $15 (ResourceType '"Yson2.Node"))
    (let $16 '($15 '"" '1))
    (let $17 (ResourceType '"Yson2.Options"))
    (let $18 (CallableType '('1) '($2) $16 '($1) '((OptionalType $17))))
    (let $19 (Udf '"Yson2.LookupString" (Void) (VoidType) '"" $18 (VoidType) '"" '()))
    (let $20 (OptionalType (StructType '('"a" $1) '('"b" (OptionalType (DataType 'Int32))) '('"c" $1))))
    (let $21 (TupleType (TupleType $20) (StructType) (TupleType)))
    (let $22 (CallableType '() '($15) '($20)))
    (let $23 '('('"strict")))
    (let $24 (Udf '"Yson2.From" (Void) $21 '"" $22 (VoidType) '"" $23))
    (let $25 (OptionalType (DataType 'Bool)))
    (let $26 (CallableType '('"2") '($17) '($25 '"AutoConvert") '($25 '"Strict")))
    (let $27 (Udf '"Yson2.Options" (Void) (VoidType) '"" $26 (VoidType) '"" $23))
    (let $28 (Apply $19 (Apply $24 (Untag $14 '"tag")) (String '"a") (Just (NamedApply $27 '() (AsStruct '('"AutoConvert" (Just (Bool '"false"))) '('"Strict" (Just (Bool '"true"))))))))
    (return (AsStruct '('"a" $28) '('"key" $13)))
  ))))))
))) '('('"_logical_id" '1227) '('"_id" '"50a330bc-bbdc89c6-e10d7601-1867cce6"))))
(let $4 (DqCnUnionAll (TDqOutput $3 '0)))
(let $5 (DqPhyStage '($4) (lambda '($29) $29) '('('"_logical_id" '1276) '('"_id" '"58b595a1-5cd18331-ddec4a4-6a830bf7"))))
(let $6 (DqCnResult (TDqOutput $5 '0) '('"key" '"a")))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($3 $5) '($6) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"a" $2) '('"key" $1))) '0 '0)) '('('"type" '"query"))))
)
