Filtering the records using the FILTER and WHERE clause