Add a getQuery getter to FilteredQuery

The `getFilter` method was already here, but there was no way to get the Query object back for manipulations.