A qualifying session that began with chaos ended with it, too, allowing Nico Rosberg to leapfrog Mercedes teammate Lewis Hamilton and take pole position for Sunday's Formula 1 Hungarian Grand Prix. Hamilton had looked set to extend his advantage in the final phase of a rain-disrupted qualifying session at the Hungaroring when yellow flags raised for Fernando Alonso's McLaren spinning off the track forced him to back off.