Correlations between real and complex zeros of a random polynomial