adds where clause to ben select

limits to 256963