Hi,
yes the query method should be mapped for the $filter to work correctly. In addition every column of the entityset which will be used for filtering should be mapped to a range table in the data source (function module). The mapping recognizes ranges and displays them with a specialized icon ([])