PHILADELPHIA Aaron Nola struck out a career-high 12 batters in seven stellar innings, Odubel Herrera had two hits to extend his career-best on-base streak to 37 games, and the Philadelphia Phillies beat the San Francisco Giants 4-2 on Tuesday night.