The win was only the third of Sole Power's career
Rank outsider Sole Power pulled off a remarkable win in the Nunthorpe Stakes at the Ebor meeting in York.
The 100-1 outsider came home ahead of hot favourite Starspangledbanner, with another 100-1 chance, Picadilly Filly, coming home in third place.
The three-year-old, ridden by Wayne Lordan, had only previously managed two wins, both on the Dundalk all-weather.
"I didn't think I'd have much of a chance. I thought he might take his chance next year," said Lordan.
The winner is owned by Sabena Power, the mother of Paddy Power, communications head of the Irish betting firm of the same name.
"We were hopeful but we didn't think he would win and if he had finished fourth we would have been pleased," said County Meath trainer Lynam.
"He is very immature but we thought this race would suit him as he can be very keen and he needs a big field to get him to settle."
Aidan O'Brien's Starspangledbanner failed to get on the early pace set by Rose Blossom, and although he got into the race later on, Sole Power was already out of reach.
Lynam added: "He's a very very fast horse, but he has been immature.
"We thought this race would suit him. I'm not saying we thought he'd win. His owner was keen to run and he knows a bit about form. He'll be a better horse next year."