Fixing typo in docstring for `query`

The SQLAlchemy link was pointing to a dead link.