It is not easy to read and understand.
var soldOutProducts =
from p in products
where p.UnitsInStock == 0;
string sql = soldOutProducts.ToString();
var soldOutProducts =
from p in products
where p.UnitsInStock == 0;
string sql = soldOutProducts.ToString();