Fixed building of query with subquery on interface inherited from IQueryable<T>.