Makes children of AbstractQuery non-final.

b66d530540d18c60720e1843fc65ce7e0399a71c made these classes final, but there is no rationale for this change given in the commit log.  Leaving this as final makes it impossible to mock and makes testing some areas of code difficult (or impossible).