filter clause for view def