[Br:1][C:2]1[CH:3]=[CH:4][C:5]([NH:8][NH2:9])=[N:6][CH:7]=1.C(O[CH:13]=[C:14]([C:20]([CH3:22])=O)[C:15]([O:17][CH2:18][CH3:19])=[O:16])C.Cl>C(O)C>[CH2:18]([O:17][C:15]([C:14]1[CH:13]=[N:9][N:8]([C:5]2[CH:4]=[CH:3][C:2]([Br:1])=[CH:7][N:6]=2)[C:20]=1[CH3:22])=[O:16])[CH3:19]Next, 5-bromopyridin-2-ylhydrazine (25.3 g) and ethyl 2-ethoxymethyleneacetoacetate (25.1 g) prepared according to a method described in J. Chem. Soc. Perkin trans. I, 1875 (1988), were added to a mixed solvent of 1N hydrochloric acid aqueous solution (320 ml) and ethanol (370 ml), stirred at reflux temperature for 4.5 hours and the solvent was evaporated in vacuo. Water was added to the residue, the precipitated solid was washed with water and recrystallized from a mixed solvent of ethyl acetate and n-hexane to give 1-(5-bromopyridin-2-yl)-5-methyl-1H-pyrazole-4-carboxylic acid ethyl ester (30.6 g) as a pale yellow solid.