CHICAGO - In Trayce Thompson's mind, baseball is baseball, no matter what level he happens to be playing at.

That may explain the Chicago White Sox 24-year-old rookie outfielder's confident big league demeanour.

Thompson drove in three runs, including a go-ahead, two-run double, and the White Sox beat the Boston Red Sox 5-4 on Tuesday night.

Thompson, who was called up Aug. 3 and is 12 of 23 from the plate while only playing sparingly, was 3 for 4 in Tuesday's win. He finished a home run shy of hitting for the cycle.

His two-out double sparked a three-run seventh inning, when the White Sox erased a 4-2 deficit.

"I'm confident in myself and my abilities," Thompson said. "You have to be to have success here."

Melky Cabrera added an RBI single in the seventh for Chicago, which had 15 hits.

The Chicago bullpen protected the one-run lead for the final two innings. Jake Petricka (4-3) picked up the win in relief and combined with Zach Duke and David Robertson to close it out.

Robertson pitched the ninth to earn his 26th save in 32 opportunities.

The White Sox trailed by two runs after Boston scored twice in the sixth. Pablo Sandoval snapped a 2-all tie with an RBI double before Travis Shaw extended the Red Sox lead with an RBI fielder's choice.

Boston starter Wade Miley couldn't protect it, surrendering the three runs in the seventh. Miley (10-10) allowed five runs and 13 hits in 6 2-3 innings. He struck out three and had a walk.

"It was one of those nights when they battled through some at-bats and kept grinding and finally put some hits together and scored some runs," Miley said.

The White Sox scored the three runs on three hits, the biggest of which came from Thompson.

"He belongs here and he knows that," White Sox manager Robin Ventura said. "The way he's taking at-bats, he's going up there being aggressive and confidence is high with him right now."

It has been there since Thompson arrived in early August. He credits that to White Sox first base coach Daryl Boston, who told Thompson on Day 1 that big league success is based on believing he belongs in the majors.

"It was some good advice," Thompson said. "And I'm just trying to benefit."

The Red Sox took a 2-1 lead in the third inning. Mookie Betts lined a double into the left-field corner, scoring Josh Rutledge. But a poor relay throw by White Sox shortstop Alexei Ramirez bounded away from catcher Geovany Soto and with no one covering home plate, Betts — who also scored two runs — was able to come around and score.

Thompson's RBI single in the fourth tied the game at 2.

Chicago starter Carlos Quintana worked six innings and struck out six while scattering seven hits and allowed three earned runs.

Carlos Sanchez gave the White Sox a 1-0 lead in the second inning with an RBI single that scored Ramirez, who reached on a fielder's choice.

TRAINER'S ROOM

Red Sox: RHP Rick Porcello will make his first start Wednesday since being placed on the disabled list on Aug. 2 with triceps soreness and inflammation. Porcello is coming off a Triple-A rehab start in which he threw 5 2-3 innings and gave up three runs on three hits while striking out six and walking one. ... RHP Steven Wright (concussion symptoms) is scheduled to see a specialist in Pittsburgh on Thursday. Wright was hit in the back of the head last week during batting practice in Miami and was placed on the disabled list Aug. 16.

White Sox: RHP Zach Putnam (right groin) was available out of the bullpen Tuesday night after missing two games. Putnam, who experienced soreness while warming up in the bullpen on Saturday night, was held out Sunday and Monday. Putnam said Tuesday that his condition had improved greatly over the last two days.

UP NEXT

Porcello (5-11, 5.81) faces LHP Chris Sale (12-7, 3.34 ERA), who will be looking for his fourth straight victory and his third straight double-digit strikeout effort. Sale has struck out 29 hitters in his last two starts.