Scheme 1:
Synthesis of target pyrazoles, 4 and 5.