[C:1]([C:3]1[CH:12]=[CH:11][C:6]([C:7]([O:9][CH3:10])=[O:8])=[CH:5][C:4]=1F)#[N:2].[NH:14]1[CH:18]=[CH:17][CH:16]=[N:15]1.[H-].[Na+]>CN(C)C=O.O>[C:1]([C:3]1[CH:12]=[CH:11][C:6]([C:7]([O:9][CH3:10])=[O:8])=[CH:5][C:4]=1[N:14]1[CH:18]=[CH:17][CH:16]=[N:15]1)#[N:2]Methyl 4-cyano-3-fluorobenzoate (0.30 g) and 1H-pyrazole (0.14 g) were dissolved in N,N-dimethylformamide (10 ml). To the reaction solution, sodium hydride (0.10 g) was added under ice cooling while stirring the mixture, and the mixture was stirred for 30 min. After increasing the temperature to room temperature, the solution was further stirred for 2 hours. The reaction solution was diluted with water and extracted twice with ethyl acetate. The organic phases were combined, washed with water, and then dried over anhydrous sodium sulfate. The drying agent was removed by filtration, and the solvent was distilled off under reduced pressure to obtain a crude product, which was then purified by column chromatography to give methyl 4-cyano-3-(1H-pyrazol-1-yl)benzoate (0.28 g, yield 73%).