embedded the nonnull filter into generate_querset_slices