Moore and O’Brien also teamed up to win the Ribblesdale Stakes with 12-1 shot Port Fairy.
Port Fairy tracked the pacesetting Oaks fourth You Got To Me before moving towards the front with two furlongs to go and fighting back after being briefly passed by eventual runner-up Lava Stream.
It meant Moore surpassed Frankie Dettori (81) as the active jockey with most wins at Royal Ascot, trailing only the late Lester Piggott in the all-time standings (116).
Going The Distance won the King George V Stakes for jockey Rossa Ryan and trainer Ralph Beckett.
The 9-1 chance, claiming a fourth successive victory, won by half a length from Neski Sherelski with the first two drawn widest of all in 18 and 19.
Gilded Water, watched by owners King Charles and Queen Camilla on Ladies’ Day, was sent off the 5-1 favourite but finished 12th.
Shareholder (12-1) gave trainer Karl Burke a second victory with a juvenile at the 2024 meeting in the Norfolk Stakes as Aidan O’Brien’s 10-11 favourite Whistlejacket finished fourth.
James Doyle was on board the victor, who had made a winning debut at Beverley just 12 days earlier. It was a second success of the week for owners Wathnan Racing, headed by Sheikh Tamim, the emir of Qatar.
And a third for Doyle and Wathnan came courtesy of the Ed Walker-trained English Oak, at odds of 10-3, the first favourite to win Thursday’s concluding Buckingham Palace Stakes.
Mickley (15-2) provided a first Royal Ascot triumph for jockey Callum Rodriguez and trainer Ed Bethell in the Britannia Stakes.
There was a second win of the week for rider Sean Levey – and trainer Brian Meehan – as their 7-1 Hampton Court Stakes victor Jayarebe held on from fast-finishing favourite King’s Gambit.