def filter_data(data):
    """
    Filters data for years after 2010 and data originating
    from Syria.

    Inputs:
        data (pd.DataFrame): Input data with column "Year" and "Origin"
    Returns:
        data (pd.DataFrame): Filtered data
    """
    if 'Origin' in data.columns:
        data = data[(data.Year > 2010) & (data.Origin.str.contains('Syria'))]
    else:
        data = data[(data.Year > 2010)]
    return data