Expand sqlalchemy connector resolution of the query object.