Added union query to filter