Pirates end Chapman's streak, beat Reds 5-4 in 10