CMS-3728 Reports fail if they have too many contents

Using InClauseBuilder that group in-restrictions into boolean expressions if number of element over limit.