<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _select_query_method(cls, url):
 """Select the correct query method based on the URL Works for `DataQualityFlag` and `DataQualityDict` """

    if urlparse(url).netloc.startswith('geosegdb.'):  # only DB2 server
        return cls.query_segdb
    return cls.query_dqsegdb