def METHOD_NAME(self, **kwargs):
    query = super(ScheduleBView, self).METHOD_NAME(**kwargs)
    # might be worth looking to factoring these out into the filter script
    if kwargs.get('sub_id'):
        query = query.filter_by(sub_id=int(kwargs.get('sub_id')))
    if kwargs.get('line_number'):
        # line number is a composite value of 'filing_form-line_number'
        if len(kwargs.get('line_number').split('-')) == 2:
            form, line_no = kwargs.get('line_number').split('-')
            query = query.filter_by(filing_form=form.upper())
            query = query.filter_by(line_number=line_no)
        else:
            raise exceptions.ApiError(
                exceptions.LINE_NUMBER_ERROR,
                status_code=400,
            )
    return query