The David O'Meara-Phillip Makin combination completed a York double as Out Do swooped late in the John Smith's City Walls Stakes.
Sent off the 4-1 favourite to bounce back from a slightly disappointing showing at Beverley, Out Do was given time to find his stride by Makin and still had ground to make up entering the last of five furlongs.
Paul Midgley-trained pair Monsieur Joe and Line Of Reason emerged as major players towards the stands side, but Out Do rattled home on the far side of the track and got up to beat the former by a neck.
Between horses Cotai Glory edged out Line Of Reason for third.
Speaking from Newmarket, O'Meara said: "We learnt a lot about him this year, it looked to me like he might have won a bit easier but a gap and maybe two gaps closed on him.
"He's got loads of speed, more than we thought he had."
Winning owner Evan Sutherland said: "We thought Beverley might not suit him last time and it didn't, but there was nothing else for him and we took our chance.
"We still had time to come here and I'm delighted he's gone and won.
"He's in the King George at Goodwood at the end of the month, so we'll look at that.
"He is entered in the Nunthorpe back here. That would probably be tilting at windmills, but we can dream a bit after today."
Birdman had earlier struck for O'Meara and Makin when he continued his rapid ascent through the ranks with a dominant display in the John Smith's Racing Stakes.
Formerly trained by David Simcock, the five-year-old joined O'Meara prior to the start of the new campaign and appeared feasibly treated off a mark of 70.
Since making a successful start for new connections at Thirsk, Birdman has not looked back, scoring at Doncaster, back at Thirsk and most recently at Haydock.
With an rating pushing 100 ahead of his latest test on the Knavesmire, O'Meara's charge was a 7-1 shot and moved smoothly throughout before extending readily clear in the final furlong.
Favourite Musaddas got going late to fill the runner-up spot, a length and three-quarters behind the winner.
You're Fired and Instant Attraction finished third and fourth respectively.
Makin said: "I thought after winning four races already this year, he'd have a job on today, but he's gone and won like a well handicapped horse.
"He is a bit like that (excitable), but once he gets away from the crowds he settles down.
"He's won very easily today and I'd hate to say where he might end up."