def return_query_string(use_matview: bool) -> tuple:
    """ Returns query strings based upon if the queryset is for a normalized or de-normalized model """

    if use_matview:  # de-normalized
        # Queries going through the references_location table will not require a join
        # Example "pop__county_code"
        q_str = "{0}_{1}"
        country_code_col = "country_code"  # Matviews use country_code ex: pop_country_code
    else:
        # Queries going through the references_location table will require a join in the filter
        # Example "place_of_performance__county_code"
        q_str = "{0}__{1}"
        country_code_col = "location_country_code"  # References_location table uses the col location_country_code

    return q_str, country_code_col