Synthesis of substituted pyrazoles via tandem cross-coupling/electrocyclization of enol triflates and diazoacetates.