subclass SqlQuery to handle hydrated queries