SAN FRANCISCO Pinch-hitter Ty Kelly had a grand slam, Rhys Hoskins hit a three-run homer and the Philadelphia Phillies snapped a six-game losing streak, beating the San Francisco Giants 12-9 Saturday night.