def search_stop_year(score_table, stop_year):
    """
    Search courses to 'stop_year'.

    'stop_year' is a list: [year, semester] and will be converted to a tuple.
    """
    return {v for v in score_table if (v[5], v[6]) <= tuple(stop_year)}