Saddlesore Galactica

Homer and Bart befriend a diving horse at a county fair. They turn it into a racehorse with an attitude, whose success runs them afoul of mysterious, tree-dwelling jockeys.