Correlation functions, scattering amplitudes and the superconformal partial wave