[NH2:1][C:2]1[NH:6][N:5]=[C:4]([CH3:7])[C:3]=1[C:8]#[N:9].CN(C)[CH:12]=[CH:13][C:14]([C:16]1[CH:21]=[CH:20][N:19]=[CH:18][CH:17]=1)=O>C(O)(=O)C>[CH3:7][C:4]1[C:3]([C:8]#[N:9])=[C:2]2[N:1]=[CH:12][CH:13]=[C:14]([C:16]3[CH:21]=[CH:20][N:19]=[CH:18][CH:17]=3)[N:6]2[N:5]=1A mixture of 6.1 g of 5-amino-3-methyl-4-pyrazole carbonitrile and 8.81 g of 3-dimethylamino-1-(4-pyridinyl)-2-propen-1-one in 50 ml of glacial acetic acid is stirred and heated at reflux for 5 hours. The reaction mixture is cooled and the precipitate which forms is collected by filtration and washed with water and a little dichloromethane to give a solid. The solid is partitioned between saturated sodium bicarbonate and dichloromethane. The organic layer is dried over anhydrous sodium sulfate and passed through a short column of hydrous magensium silicate. The addition of hexane to the eluate crystallizes the product which is collected by filtration to give 6.17 g of the desired product, mp 220°-221° C.