code: def _select_query_method(cls, url):
      
      if urlparse(url).netloc.startswith('geosegdb.'):  # only DB2 server
          return cls.query_segdb
      return cls.query_dqsegdb
docs: Select the correct query method based on the URL
  
      Works for `DataQualityFlag` and `DataQualityDict`