sentence: robert henry pettit ( july 19 , 1861 in williamstown , massachusetts -- november 1 , 1910 in derby , connecticut ) , was a professional baseball player who played pitcher and outfielder in the major leagues from 1887 to 1891 .