private static TResult Execute <TResult>(IQueryable queryable, System.Linq.Expressions.Expression expression) => queryable.Provider.Execute <TResult>(AggregateQuery <TVal> .Rewrite(queryable, expression));
private static IEnumerable <TVal> GetSubQuery(IQueryable queryable, System.Linq.Expressions.Expression expression) { expression = AggregateQuery <TVal> .Rewrite(queryable, expression); return(new BufferedEnumerable <TVal>(queryable.Provider.CreateQuery <TVal>(expression), 30)); }