The following code works fine in Linq, when I join the tables using the where clause
var result = from dist in distributors let mainDistributorStates = ne