Add the where clause to the generator expression