S&P Global beats Q2 estimates as Ratings and Indices hit records