I am trying to query this table using LINQ:

Here is what I want to do:

Here is my LINQ query:
var query = from a in table where a.Country.Equals("USA") group a by a.Product_brand into grp select new { Product_brand = grp.key.Product_brand, Country = grp.Key.Country, Black = grp.Count(a => a.Black=="Yes"), White = grp.Count(a => a.White=="Yes"), Red = grp.Count(a=> a.Red=="Yes"), Green = grp.Count(a=> a.Green=="Yes") }
I do not know what is wrong with my request, I continue to receive this message:

Alternative solution:
Sql request:
SELECT [Product brand], Country, sum(case when [Black] = 'Yes' then 1 else 0 end) as Black, sum(case when [White] = 'Yes' then 1 else 0 end) as White, sum(case when [Red] = 'Yes' then 1 else 0 end) as Red, sum(case when [Green] = 'Yes' then 1 else 0 end) as Green, FROM dbo.Table group by [Product brand], Country
source share