PITTSBURGH -

Dan Straily pitched two-hit ball into the seventh inning, Brandon Moss hit a two-run homer and the Oakland Athletics beat the Pittsburgh Pirates 2-1 on Tuesday night.

Straily (6-2) struck out seven and walked three in 6 1-3 innings for his second straight strong outing. Grant Balfour worked the ninth to remain perfect in 24 save chances this season. The A's have won 10 of 13.

Gerrit Cole (4-2) lost his second consecutive decision despite working seven innings for the first time in his four-week major league career. Cole allowed five hits, struck out four and walked two.

Pedro Alvarez hit his 23rd home run but Pittsburgh matching a season high with its fourth straight loss.