consistend use of `filter_by` for single table queries.