50/1 shot Qualify lands the Oaks for Aidan O'Brien
Qualify, trained by Aidan O'Brien and ridden by Colm O'Donoghue, won the Investec Oaks at Epsom.
David Wachman's 1000 Guineas heroine Legatissimo looked set to become a dual Classic winner when coming out of the pack to lead passing the furlong marker, but Colm
O'Donoghue conjured a late rattle from 50-1 shot Qualify and got up by a short head.
Lady Of Dubai was a further two and a half lengths back in third.
Qualify mixed it with the best as a juvenile last season and won a Group Three along the way, but looked to have plenty on her plate having finished stone last in the Guineas at Newmarket and down the field in the Irish equivalent.
O'Donoghue dropped his mount out towards the back of the field for much of the mile-and-a-half journey and she remained nearer last than first rounding the home turn.
Legatissimo was the 5-2 favourite to become the first filly since Kazzia in 2002 to follow up Guineas glory in the Oaks and having travelled well for Ryan Moore, she quickened to the lead, but Qualify - who avoided trouble on the inside - wore her down in the dying strides.
Lady Of Dubai ran a perfectly respectable race in third.
The biggest disappointment was Crystal Zvezda, who refused to settle for Richard Hughes and finished well down the field.