It was the lady lawmakers for the win in Thursday night's third annual Congressional Women’s Softball game.

After losing to the media team the past two years, the lawmakers scrapped out a 5-4 victory, thanks to a hit by Democratic National Committee Chairwoman Debbie Wasserman Schultz (D-Fla.) that brought in the winning run.

The charity match between female lawmakers and female members of the media benefits the Young Survival Coalition (YSC), an organization that provides support for young women who are diagnosed with breast cancer.

Minority Leader Nancy Pelosi (D-Calif.) stopped by and Supreme Court Justice Sonia Sotomayor threw out the first pitch.

Sen. Kirsten Gillibrand (D-N.Y.) named Wasserman Schultz the game's MVP and said the game was dedicated to Rep. Gabrielle Giffords (D-Ariz.), who is recovering from a January assassination attempt. "A great win tonight for the Congressional women's softball team & MVP @DWStweets! This one was for you, Gabby!," she tweeted Thursday night.

Many members wore ribbons in honor of Giffords at the game. The entire congressional women's team, plus Pelosi, Minority Whip Steny Hoyer (D-Md.) and the captains of the press team signed the game ball, which will be sent to Giffords.

Pelosi also tweeted her congrats, writing: "Women journos: while you lost #CWSftball, @calmesnyt noted all women @whitehouse pool lineup y'day #YouGoGirls #BeltwayTweet"

The minority leader was referring to a White House pool report from New York Times reporter Jackie Calmes, which noted that the team of reporters following President Obama on Thursday was composed entirely of women. "It was an all-female pool today, with 7 women making up the reps for wires, print, mag, tv producer and a photog," according to Calmes's report.

-- This post was updated at 1:51 p.m.

* Photo of the winning softball team is from Pelosi's twitter account.