Make max capacity for query