The Giants managed just four hits off Francisco Liriano over seven innings, and would be swept by the Pirates as part of a five-game home losing streak.