[reaction: see text] Reversible metathesis reactions of pyrazolotriazinones and aliphatic aldehydes or ketones proceed in aqueous, phosphate-buffered media at pH 4 and 40-60 degrees C to generate thermodynamically controlled mixtures of heterocycles.