What I've been using and it works great is:
IQueryable groupByLeadIdQuery = null;
I hope it works for you too.