Fred Thompson's goal with 8:07 remaining gave George Mason a 3-2 upset win over second-ranked Virginia yesterday in the second game of a doubleheader at George Mason in which the Patriots' women's team won a first-round NCAA tournament game in the opener.

A capacity crowd of 5,000 watched as Pam Baughman scored in the shootout to give the women's team a 3-2 victory over William and Mary.

In the men's game, Thompson scored on a direct kick from 18 yards out to give George Mason (17-3-0) its only lead.

Virginia (15-3-1) took a 2-1 lead as John Harkes and Jay Del Carmen scored for the Cavaliers. Sam Sumo scored his 24th goal of the season for Mason and Bruce Lobdell tied it with 3:07 left in the first half.

Whereas the women's victory advanced them to an NCAA second-round game this week against Cortland State (a 2-1 winner over Connecticut), the men's victory may gain the Patriots entry to the NCAA tournament.

"I think the victory will mean a playoff berth," said George Mason Coach Gordon Bradley. "Even a tie wasn't good enough. We needed a victory . . . "

Because George Mason had lost games to Duke, American and South Carolina, a berth was in doubt.

In the women's game, Baughman scored on the seventh shootout kick and goalie Kim Maslin stopped Linda Seiden's shot to ensure the win.

George Mason (15-2-1) had trailed, 2-0, with less than 14 minutes remaining. Chris Tomek scored with 13:35 left and Lisa Gmitter tied it with 2:30 remaining. The teams played two scoreless 15-minute overtimes before moving to the shootout, in which each team was given five shots.

William and Mary (9-3-3) made its first four penalty kicks and George Mason made three of four. The Patriots forced sudden death when Betsy Drambour's shot bounded out of Liz Gonda's hands into the net and Maslin stopped Julie Cunningham's shot with a diving save at the bottom right-hand corner of the net.

On the sixth turn for each team, Gonda caught Gmitter's kick and Maslin popped Kathleen McCarthy's shot over the top of the net. Baughman's decisive shot beat Gonda in the top left corner. "I knew I was going to go left; that's the only thing I knew," Baughman said. Maslin saved Seiden's shot when she dove right.