def parse_sql_condition(cohort_ids, where_condition=False):
    """ Parse the sql condition to insert in another sql statement.
    """
    return f"""{"WHERE" if where_condition else "AND"} id IN {cohort_ids}""" \
        if cohort_ids else ""