(
(let $1 (DataType 'Int32))
(let $2 (StructType '('"a" $1) '('"o" (OptionalType $1)) '('"x" $1)))
(let $3 '('"key" $1))
(let $4 '('('"_logical_id" '1296) '('"_id" '"987633ca-3b6833db-2ba65ac4-72350946") '('"_wide_channels" (StructType '('_yql_agg_0 $2) $3))))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"Int32"]];["val";["StructType";[["a";["DataType";"Int32"]];["x";["DataType";"Int32"]];["o";["OptionalType";["DataType";"Int32"]]]]]]]]@@)
  (let $15 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $14)))
  (let $16 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" '"false")))))
  (let $17 (YtStat '('Id '"Input") '('RecordsCount '"9") '('DataSize '"397") '('ChunkCount '1) '('ModifyTime '0) '('Revision '0)))
  (let $18 (YtTable '"Input" $15 $16 $17 '() (Void) (Void) '"/Root/plato"))
  (let $19 (YtReadTable! world (DataSource '"yt" '"/Root/plato") '((YtSection '((YtPath $18 '('"key" '"val") (Void) (Void))) '()))))
  (let $20 (lambda '($25 $26 $27) (Member $27 '"a") (Member $27 '"o") (Member $27 '"x")))
  (let $21 (lambda '($28 $29 $30 $31 $32 $33) $31 $32 $33))
  (let $22 (lambda '($34 $35 $36 $37) (block '(
    (let $38 (AsStruct '('"a" $35) '('"o" $36) '('"x" $37)))
    (return $38 $34)
  ))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 (lambda '($23 $24) $23) $20 $21 $22))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('1) '0 '"HashV2"))
(let $7 (StructType $3 '('"someVal" $2)))
(let $8 '('('"_logical_id" '1538) '('"_id" '"3bb17354-69aa66f5-358ef0a3-6543fd50") '('"_wide_channels" $7)))
(let $9 (DqPhyStage '($6) (lambda '($39) (block '(
  (let $40 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $39)) (lambda '($44 $45) $45) (lambda '($46 $47) (AsStruct '('_yql_agg_0 $46) '('"key" $47))) '('Auto 'Many)))
  (let $41 (Condense1 (OrderedFlatMap $40 (lambda '($48) (OrderedFlatMap (DictPayloads $48) (lambda '($49) $49)))) (lambda '($50) $50) (lambda '($51 $52) (AggrNotEquals (Member $51 '"key") (Member $52 '"key"))) (lambda '($53 $54) $54)))
  (let $42 (Sort (Map $41 (lambda '($55) (AsStruct '('"key" (Member $55 '"key")) '('"someVal" (Member $55 '_yql_agg_0))))) (Bool 'true) (lambda '($56) (Member $56 '"key"))))
  (let $43 (lambda '($57) (Member $57 '"key") (Member $57 '"someVal")))
  (return (FromFlow (ExpandMap $42 $43)))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($58) (FromFlow (NarrowMap (ToFlow $58) (lambda '($59 $60) (AsStruct '('"key" $59) '('"someVal" $60)))))) '('('"_logical_id" '1550) '('"_id" '"fa728c79-90556183-32bd7628-d4771282"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '('"key" '"someVal")))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $7) '0 '0)) '('('"type" '"query"))))
)
