def extract_sql_param_from_http_param(separator: str, http_param: str):
    """
    Extracts sql params from an http param with given separator,
    returning tuple of db_query_label and query_name
    """
    try:
        db_query_label, query_name = http_param.split(separator)
    except ValueError:
        raise Exception(
            f"""Query parameter: {http_param} should be of pattern 
            <DbQuery.label>{separator}<query_name>
            like da_ndf{separator}q""")

    return db_query_label, query_name