Initial public offerings more than doubled in the second quarter as companies from Blackstone Group LP to Banco do Brasil SA sold businesses before a reversal in stock markets curbed some sales.

IPOs raised $42 billion in the period, compared with $20 billion in the first quarter, led by Banco do Brasil’s sale of its insurance unit for $5.7 billion, the biggest offering of the year, according to data compiled by Bloomberg. The number of deals increased 18 percent to 239.