It was sobs in the city for horse racing fan Sarah Jessica Parker – just one in a herd of celebrities who turned up for Funny Cide’s failed Triple Crown bid yesterday.

The sultry “Sex and the City” star and hubby Matthew Broderick sat stunned and speechless in the covered box seats at rain-soaked Belmont Park after the hometown hero horse could only muster a third-place finish.

“We’re not doing interviews,” huffed the party-pooped Parker, who was wiping tears from her eyes as she was visibly shaken by the outcome.

They may have been silent, but a chorus of Bronx cheers erupted around them when Empire Maker entered the winner’s circle, a patch of muddy track that most spectators had reserved in their hearts for Funny Cide.

The unhappy couple were joined in the not-so-cheap seats by A-listers Goldie Hawn, Sigourney Weaver, Steven Spielberg and wife Kate Capshaw, socialite Marylou Whitney, known as the first lady of New York horse racing, and “Sopranos” cast members Michael Imperioli, Steve Schirripa and John Ventimiglia.

Spielberg, sporting his signature sunglasses and baseball cap and puffing on a cigar, called the favorite’s downfall “a shame.”

Even TV wiseguy Imperioli was sympathetic toward Funny Cide’s camp. “I think he’s a great horse. My heart was with him,” he said.

Jack Knowlton, one of Funny Cide’s committee of owners, said his gelding’s rise and fall from the Kentucky Derby victory to yesterday’s loss was a “a great time but a tough race.”

Knowlton, Funny Cide’s principal spokesman, was in the Garden Terrace Restaurant with 300 of his closest friends, many of whom had come down in yellow school buses from upstate New York.

Pols on hand included Mayor Bloomberg and former Gov. Hugh Carey, who after the race told The Post he disagreed with Funny Cide jockey Jose Santos’ decision to try and lead wire to wire.

“He’s not a front-running horse,” Carey said. “He shouldn’t have gone to the front, but Empire [Maker] had a hell of a race.”

Carey said he’s the only living Triple Crown governor, since he was in office when Seattle Slew in 1977 and Affirmed in 1978 won the Triple Crown.

Carey watched the race from a perch in the Belmont Room, a private club adjacent to the VIP boxes in the clubhouse.

He was one of several dry spectators who paid top dollar to quaff champagne and munch jumbo shrimp while discussing the sloppy track and generally passing time until the feature race began.

“Hands down, this is the most exciting Triple Crown run,” says New York Racing Association President Barry K. Schwartz.

This story has captured everyone’s imagination because it’s a New York horse and owned by a group of guys who pooled a little bit of money and really hit the jackpot. And they’re nice guys.”

Prior to the race, Rita Santos, the attractive wife of the Funny Cide jockey, said her husband slept well the night before.

He then gave a bad forecast on the race. “He looked in the mirror this morning and goes, ‘Does this look like a nice tie for a Triple Crown winner?’ “