from typing import List


def opt_filter_string(filter_string: str, id_list: List[int]):
    """ Generate string for option-based filter.

    Generates a filter for filtering for specific rows based on the unique
    element ID that will be added to the main SQL query.

    Args:
        filter_string: Start of the filter string containing the column.
        id_list: List of element ID that will be filtered for.
    
    Returns:
        filter_string: The formatted options filter string.
    """
    id_list_string = ", ".join([str(element_id) for element_id in id_list])
    return(filter_string + f"({id_list_string})")