Add raw SQL filters to the Query class