beta-galactosidase activity [GO_0004565] - Virtual Fly Brain