Stephen Piscotty had a two-run homer and Paul DeJong added a two-run double as part of a six-run ninth inning as the Cardinals rallied to top the Giants. St. Louis pulled to within four games of the second NL Wild Card spot after coming back from a 5-2 deficit. Brandon Crawford and a two-run homer and Hunter Pence added a two-run triple, and Johnny Cueto allowed two runs over 5 1/3 innings in his first start since July 14.