(
(let $1 (lambda '($20) $20))
(let $2 (StructType '('"subkey" (DataType 'String))))
(let $3 '('"_wide_channels" $2))
(let $4 '('('"_logical_id" '959) '('"_id" '"b48a2369-c81d1658-91a2c00e-1c613e52") $3))
(let $5 (DqPhyStage '() (lambda '() (block '(
  (let $14 '@@["StructType";[["key";["DataType";"String"]];["subkey";["DataType";"String"]];["value";["DataType";"String"]]]]@@)
  (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 '"10") '('DataSize '"424") '('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 '('"subkey") (Void) (Void))) '()))))
  (return (DqPhyHashCombine (WideToBlocks (FromFlow (DqReadWideWrap $19 '()))) '-1073741824 $1 (lambda '($21 $22) $21) (lambda '($23 $24 $25) $25) (lambda '($26 $27) $27)))
))) $4))
(let $6 (DqCnHashShuffle (TDqOutput $5 '0) '('0) '0 '"HashV2"))
(let $7 (lambda '($32) (AsStruct '('"subkey" $32))))
(let $8 '('('"_logical_id" '1200) '('"_id" '"cb910341-3e149bdb-eef647dc-98b90e3c") $3))
(let $9 (DqPhyStage '($6) (lambda '($28) (block '(
  (let $29 (NarrowSqueezeToDict (ToFlow (WideFromBlocks $28)) $1 $7 '('Auto 'Many)))
  (let $30 (Condense1 (OrderedFlatMap $29 (lambda '($33) (OrderedFlatMap (DictPayloads $33) (lambda '($34) $34)))) (lambda '($35) (Member $35 '"subkey")) (lambda '($36 $37) (AggrNotEquals (Member $36 '"subkey") $37)) (lambda '($38 $39) $39)))
  (let $31 (Sort (Map $30 $7) (Bool 'true) (lambda '($40) (Member $40 '"subkey"))))
  (return (FromFlow (ExpandMap $31 (lambda '($41) (Member $41 '"subkey")))))
))) $8))
(let $10 (DqCnMerge (TDqOutput $9 '0) '('('0 '"Asc"))))
(let $11 (DqPhyStage '($10) (lambda '($42) (FromFlow (NarrowMap (ToFlow $42) $7))) '('('"_logical_id" '1212) '('"_id" '"ae98fa1f-ebcff968-790da8e3-3e0585ef"))))
(let $12 '($5 $9 $11))
(let $13 (DqCnResult (TDqOutput $11 '0) '()))
(return (KqpPhysicalQuery '((KqpPhysicalTx $12 '($13) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType $2) '0 '0)) '('('"type" '"query"))))
)
