Spatiotemporal correlations of earthquakes