In this sentence, "that" is the comparative pronoun, comparing the dog that barked to the dog that chased squirrels.