Over the years, Boston Red Sox left-hander Jon Lester has been a pitcher the Baltimore Orioles just couldn’t beat.

Lester opened his career 14-0 against the Orioles — the longest winning streak to open a career of any pitcher against them — but it finally appears the team has figured him out.

Backed by Chris Davis’s majors-leading 23rd homer of the season and a strong start from right-hander Miguel Gonzalez, the Orioles beat Lester and the Red Sox, 6-3, Sunday afternoon at Camden Yards in front of 41,311.

The Orioles (40-30) handed Lester his first loss at Camden Yards — he was 7-0 with a 2.52 ERA here heading into the day — and earned their sixth consecutive series win over Boston by taking three of four from the AL East leaders this weekend.

The Orioles trail the Red Sox by 11 / 2 games heading into this week’s six-game road trip to Detroit and Toronto.

They have won six of their last seven against the Red Sox at Camden Yards and 14 of their last 19 against them overall.

After going unbeaten with a 2.49 ERA in his first 20 career starts against the Orioles, Lester (6-4) is 0-2 with a 6.75 ERA in his past two starts against them.

Somewhat appropriately, the start by Gonzalez on Father’s Day was in question.

His wife is expected to give birth to the couple’s first child any day.

Gonzalez (5-2) made the start and held the Red Sox scoreless through his first six innings; the only hits against him were a pair of singles from Jacoby Ellsbury.

The Red Sox (42-29) finally got to Gonzalez in the seventh after Will Middlebrooks hit a three-run homer to right.

But Gonzalez — whose afternoon ended having allowed three runs on five hits over 61 / 3 innings — still recorded his third straight quality start. In three June starts, Gonzalez is 3-0 with a 2.21 ERA.

Davis hit his 100th career homer as part of the Orioles’ three-run third inning. The home run came with two outs and on a 3-1 pitch from Lester; Davis drove it into the flag court above the high right field wall.

Davis, who also had an RBI double in the fifth, is batting .343 (12 for 35) over his past 10 games against the Red Sox with seven homers, nine runs and 13 RBI.

— Baltimore Sun