(
(let $1 '('"key" (DataType 'Utf8)))
(let $2 (DataType 'String))
(let $3 '('"subkey" (OptionalType $2)))
(let $4 '('"_other" '"key" '"subkey"))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $9 '@@["StructType";[["key";["DataType";"Utf8"]];["subkey";["OptionalType";["DataType";"String"]]]]]@@)
  (let $10 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '0) '('UniqueKeys '0) '('Type $9)))
  (let $11 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '0) '('InferredScheme '1) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $12 (YtStat '('Id '"Input") '('RecordsCount '"4") '('DataSize '"144") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $13 (YtTable '"Input" $10 $11 $12 '('('"usercolumns" (StructType $1 $3))) (Void) (Void) '"/Root/plato"))
  (let $14 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $13 $4 (Void) (Void))) '()))))
  (return (FromFlow (NarrowMap (DqReadWideWrap $14 '()) (lambda '($15 $16 $17) (block '(
    (let $18 (Sort (DictItems $15) (Bool 'true) (lambda '($19) $19)))
    (return (AsStruct '('"_other" $18) '('"key" $16) '('"subkey" $17)))
  ))))))
))) '('('"_logical_id" '685) '('"_id" '"a48c5388-891451ca-7b74ecd9-4e9a7323"))))
(let $6 (DqCnUnionAll (TDqOutput $5 '0)))
(let $7 (DqPhyStage '($6) (lambda '($20) $20) '('('"_logical_id" '733) '('"_id" '"6f12073d-bc5c2f36-30bc4e95-c295218a"))))
(let $8 (DqCnResult (TDqOutput $7 '0) $4))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($5 $7) '($8) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"_other" (ListType (TupleType $2 $2))) $1 $3)) '0 '0)) '('('"type" '"query"))))
)
