Relations among Amplitudes, Yang-Mills theory and Gravity