Query does not filter on the date from and date to values unless they are included in the query criteria.