Melky Cabrera sparked a comeback from a three-run deficit with a two-run homer, and the Dominican Republic claimed the final Olympic baseball berth by beating Venezuela 8-5 on Saturday and winning the final qualifier at Puebla, Mexico.

Former Kansas City infielder Ramón Torres hit a go-ahead infield single in a six-run fourth inning for the Dominicans, who joined host Japan, the United States, Israel, Mexico and South Korea at the Olympics/ The baseball tournament will be played from July 28 to Aug. 7 in Fukushima and Yokohama.

Baseball was dropped from the Olympics after 2008, was restored for the Tokyo Games and is being dropped again for 2024, though it is likely to be added for Los Angeles in 2028.

Players on 40-man major league rosters are not eligible.

San Francisco prospect Diego Rincones put Venezuela ahead with a three-run homer in the second inning off Radhames Liz, whose last major league appearance was with Pittsburgh in 2015.

Emilio Bonifacio walked off starter Yapson Gomez with two outs in the third, and the 36-year-old Cabrera, a 15-year big league veteran, greeted former Los Angeles Angels pitcher Eduardo Paredes with a two-run homer.

Juan Francisco singled leading off the fourth and Milwaukee prospect Harold Chirino relieved. Boston prospect Johan Mieses singled, Diego Goris followed with a tying double and Torres singled for a 4-3 lead.

Charlie Valerio’ had an RBI single, Gustavo Nunez hit a two-run single and Bonifacio added a sacrifice fly for an 8-3 lead.

Former big leaguer Dario Álvarez pitched a hitless fourth for the win. Chirino was the loser.

Milwaukee prospect Alexander Palma singled in a run in the seventh off former Arizona prospect Luis Castillo, and Danry Vasquez hit an RBI double with two outs in the ninth off Jairo Asencio before Palma’s game-ending groundout.

The Netherlands was eliminated Friday. Australia, China and Taiwan withdrew from the final qualifier citing the coronavirus pandemic.

___

More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP_Sports