C[N:2]([CH3:12])[CH:3]=[CH:4][C:5]([C:7]1[CH:11]=[CH:10][S:9][CH:8]=1)=O.N[C:14]1[C:18](C)=[CH:17][NH:16][N:15]=1>C(O)(=O)C>[CH3:17][C:18]1[CH:14]=[N:15][N:16]2[C:5]([C:7]3[CH:11]=[CH:10][S:9][CH:8]=3)=[CH:4][CH:3]=[N:2][C:12]=12A mixture of 0.01 mole of 3-dimethylamino-1-(3-thienyl)-2-propen-1-one and 0.01 mole of 3-amino-4-methylpyrazole in glacial acetic acid is heated at reflux temperature for 8 hours. The solvent is removed in vacuo to give the product of the example.