(
(let $1 (DataType 'String))
(let $2 (StructType '('"key" $1) '('"subkey" $1) '('"value" $1) '('"x" (OptionalType $1)) '('"y" (OptionalType (DataType 'Int32))) '('"z" (NullType))))
(let $3 '('('"_logical_id" '997) '('"_id" '"c64d2ab0-c9e9ae4-6a2455f3-28db509a") '('"_wide_channels" $2)))
(let $4 (DqPhyStage '() (lambda '() (block '(
  (let $8 '('"x" (String '"150")))
  (let $9 '('"z" (Null)))
  (let $10 (AsStruct $8 '('"y" (Int32 '1)) $9))
  (let $11 (AsStruct $8 '('"y" (Int32 '2)) $9))
  (let $12 '('Many 'Hashed 'Compact))
  (let $13 (SqueezeToDict (Map (ToFlow (AsList $10 $11)) (lambda '($15) '((Member $15 '"x") $15))) (lambda '($16) (Nth $16 '0)) (lambda '($17) (Nth $17 '1)) $12))
  (let $14 (Bool 'true))
  (return (FromFlow (WideSort (FlatMap $13 (lambda '($18) (block '(
    (let $19 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
    (let $20 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $19)))
    (let $21 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
    (let $22 (YtStat '('Id '"Input1") '('RecordsCount '4) '('DataSize '"166") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
    (let $23 (YtTable '"Input1" $20 $21 $22 '() (Void) (Void) '"/Root/plato"))
    (let $24 '('"key" '"subkey" '"value"))
    (let $25 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $23 $24 (Void) (Void))) '()))))
    (let $26 '('0 '0 '1 '1 '2 '2))
    (let $27 '('"x" '3 '"y" '4 '"z" '5))
    (return (MapJoinCore (DqReadWideWrap $25 '()) $18 'Left '('0) '('"x") $26 $27 '('"a.key") '('"b.x")))
  )))) '('('0 $14) '('4 $14)))))
))) $3))
(let $5 (DqCnMerge (TDqOutput $4 '0) '('('0 '"Asc") '('4 '"Asc"))))
(let $6 (DqPhyStage '($5) (lambda '($28) (FromFlow (NarrowMap (ToFlow $28) (lambda '($29 $30 $31 $32 $33 $34) (AsStruct '('"key" $29) '('"subkey" $30) '('"value" $31) '('"x" $32) '('"y" $33) '('"z" $34)))))) '('('"_logical_id" '1009) '('"_id" '"6d8e9b7b-4fdfac4d-44398873-3448ae78"))))
(let $7 (DqCnResult (TDqOutput $6 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($4 $6) '($7) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
